ProcessMaker-BE "Trigger Wizard (fixes)"
- En el listado de trigger wizards no estaba ordenado, ahora se despliega ordenadamente - Se corrigio el .feature correspondiente para que aplique el cambio - Otros fixes tambien se realizaron
This commit is contained in:
@@ -22,11 +22,11 @@ Feature: Group
|
|||||||
Examples:
|
Examples:
|
||||||
| i | lib_name | lib_title | lib_class_name |
|
| i | lib_name | lib_title | lib_class_name |
|
||||||
| 0 | pmFunctions | ProcessMaker Functions | class.pmFunctions.php |
|
| 0 | pmFunctions | ProcessMaker Functions | class.pmFunctions.php |
|
||||||
| 1 | pmTrSharepoint | Sharepoint DWS Triggers v. 0.1 | class.pmTrSharepoint.pmFunctions.php |
|
| 1 | pmSugar | Sugar CRM Triggers | class.pmSugar.pmFunctions.php |
|
||||||
| 2 | pmSugar | Sugar CRM Triggers | class.pmSugar.pmFunctions.php |
|
| 2 | pmTalend | Talend ETL Integration | class.pmTalend.pmFunctions.php |
|
||||||
| 3 | pmTalend | Talend ETL Integration | class.pmTalend.pmFunctions.php |
|
| 3 | pmTrAlfresco | Alfresco DM Triggers v. 0.1 | class.pmTrAlfresco.pmFunctions.php |
|
||||||
| 4 | pmZimbra | Zimbra Triggers v. 0.1 | class.pmZimbra.pmFunctions.php |
|
| 4 | pmTrSharepoint | Sharepoint DWS Triggers v. 0.1 | class.pmTrSharepoint.pmFunctions.php |
|
||||||
| 5 | pmTrAlfresco | Alfresco DM Triggers v. 0.1 | class.pmTrAlfresco.pmFunctions.php |
|
| 5 | pmZimbra | Zimbra Triggers v. 0.1 | class.pmZimbra.pmFunctions.php |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Get a single Library
|
Scenario Outline: Get a single Library
|
||||||
|
|||||||
@@ -569,17 +569,20 @@ class Process extends BaseProcess
|
|||||||
|
|
||||||
public static function existsByProTitle ($PRO_TITLE)
|
public static function existsByProTitle ($PRO_TITLE)
|
||||||
{
|
{
|
||||||
$oCriteria = new Criteria( 'workflow' );
|
$oCriteria = new Criteria("workflow");
|
||||||
$oCriteria->addSelectColumn( 'COUNT(*) AS PROCESS' );
|
|
||||||
|
$oCriteria->addSelectColumn("COUNT(" . ContentPeer::CON_ID . ") AS NUM_REC");
|
||||||
|
|
||||||
$oCriteria->add( ContentPeer::CON_CATEGORY, 'PRO_TITLE' );
|
$oCriteria->add( ContentPeer::CON_CATEGORY, 'PRO_TITLE' );
|
||||||
$oCriteria->add( ContentPeer::CON_LANG, SYS_LANG );
|
$oCriteria->add( ContentPeer::CON_LANG, SYS_LANG );
|
||||||
$oCriteria->add( ContentPeer::CON_VALUE, $PRO_TITLE );
|
$oCriteria->add( ContentPeer::CON_VALUE, $PRO_TITLE );
|
||||||
$oDataset = ContentPeer::doSelectRS( $oCriteria );
|
$oDataset = ContentPeer::doSelectRS( $oCriteria );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
$aRow = $oDataset->getRow();
|
$aRow = $oDataset->getRow();
|
||||||
|
|
||||||
return $aRow['PROCESS'] ? true : false;
|
return ((int)($aRow["NUM_REC"]) > 0)? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAllProcessesCount ()
|
public function getAllProcessesCount ()
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class InputDocument
|
|||||||
"INP_DOC_DESCRIPTION" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentDescription"),
|
"INP_DOC_DESCRIPTION" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentDescription"),
|
||||||
"INP_DOC_FORM_NEEDED" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("VIRTUAL", "REAL", "VREAL"), "fieldNameAux" => "inputDocumentFormNeeded"),
|
"INP_DOC_FORM_NEEDED" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("VIRTUAL", "REAL", "VREAL"), "fieldNameAux" => "inputDocumentFormNeeded"),
|
||||||
"INP_DOC_ORIGINAL" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("ORIGINAL", "COPY", "COPYLEGAL"), "fieldNameAux" => "inputDocumentOriginal"),
|
"INP_DOC_ORIGINAL" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("ORIGINAL", "COPY", "COPYLEGAL"), "fieldNameAux" => "inputDocumentOriginal"),
|
||||||
"INP_DOC_PUBLISHED" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("PRIVATE"), "fieldNameAux" => "inputDocumentPublished"),
|
"INP_DOC_PUBLISHED" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("PRIVATE", "PUBLIC"), "fieldNameAux" => "inputDocumentPublished"),
|
||||||
"INP_DOC_VERSIONING" => array("type" => "int", "required" => false, "empty" => false, "defaultValues" => array(0, 1), "fieldNameAux" => "inputDocumentVersioning"),
|
"INP_DOC_VERSIONING" => array("type" => "int", "required" => false, "empty" => false, "defaultValues" => array(0, 1), "fieldNameAux" => "inputDocumentVersioning"),
|
||||||
"INP_DOC_DESTINATION_PATH" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentDestinationPath"),
|
"INP_DOC_DESTINATION_PATH" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentDestinationPath"),
|
||||||
"INP_DOC_TAGS" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentTags")
|
"INP_DOC_TAGS" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "inputDocumentTags")
|
||||||
|
|||||||
@@ -1603,6 +1603,8 @@ class Process
|
|||||||
$triggerLibrary = \triggerLibrary::getSingleton();
|
$triggerLibrary = \triggerLibrary::getSingleton();
|
||||||
$library = $triggerLibrary->getRegisteredClasses();
|
$library = $triggerLibrary->getRegisteredClasses();
|
||||||
|
|
||||||
|
ksort($library);
|
||||||
|
|
||||||
foreach ($library as $key => $value) {
|
foreach ($library as $key => $value) {
|
||||||
$libraryName = (preg_match("/^class\.?(.*)\.pmFunctions\.php$/", $key, $arrayMatch))? ((isset($arrayMatch[1]) && $arrayMatch[1] != "")? $arrayMatch[1] : "pmFunctions") : $key;
|
$libraryName = (preg_match("/^class\.?(.*)\.pmFunctions\.php$/", $key, $arrayMatch))? ((isset($arrayMatch[1]) && $arrayMatch[1] != "")? $arrayMatch[1] : "pmFunctions") : $key;
|
||||||
|
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ class Bpmn extends Handler
|
|||||||
// setting defaults
|
// setting defaults
|
||||||
$data['PRJ_UID'] = array_key_exists('PRJ_UID', $data) ? $data['PRJ_UID'] : Common::generateUID();
|
$data['PRJ_UID'] = array_key_exists('PRJ_UID', $data) ? $data['PRJ_UID'] : Common::generateUID();
|
||||||
|
|
||||||
|
unset($data["PRJ_UPDATE_DATE"]);
|
||||||
|
|
||||||
self::log("Create Project with data: ", $data);
|
self::log("Create Project with data: ", $data);
|
||||||
$this->project = new Project();
|
$this->project = new Project();
|
||||||
$this->project->fromArray($data, BasePeer::TYPE_FIELDNAME);
|
$this->project->fromArray($data, BasePeer::TYPE_FIELDNAME);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class Workflow extends Handler
|
|||||||
$process = new Process();
|
$process = new Process();
|
||||||
$processData = $process->load($proUid);
|
$processData = $process->load($proUid);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new Exception\ProjectNotFound($me, $proUid);
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
$me->process = $processData;
|
$me->process = $processData;
|
||||||
|
|||||||
Reference in New Issue
Block a user