Merged colosa/processmaker into master
This commit is contained in:
@@ -142,7 +142,6 @@ class Derivation
|
||||
|
||||
$arrayNextTask = array();
|
||||
$arrayNextTaskDefault = array();
|
||||
$i = 0;
|
||||
|
||||
//SELECT *
|
||||
//FROM APP_DELEGATION AS A
|
||||
@@ -211,18 +210,17 @@ class Derivation
|
||||
}
|
||||
|
||||
if ($flagContinue) {
|
||||
$arrayNextTask[++$i] = $this->prepareInformationTask($arrayRouteData);
|
||||
$arrayNextTask[] = $this->prepareInformationTask($arrayRouteData);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($arrayNextTask) == 0 && count($arrayNextTaskDefault) > 0) {
|
||||
$arrayNextTask[++$i] = $this->prepareInformationTask($arrayNextTaskDefault);
|
||||
$arrayNextTask[] = $this->prepareInformationTask($arrayNextTaskDefault);
|
||||
}
|
||||
|
||||
//Check Task GATEWAYTOGATEWAY
|
||||
$arrayNextTaskBk = $arrayNextTask;
|
||||
$arrayNextTask = array();
|
||||
$i = 0;
|
||||
|
||||
foreach ($arrayNextTaskBk as $value) {
|
||||
$arrayNextTaskData = $value;
|
||||
@@ -231,16 +229,22 @@ class Derivation
|
||||
$arrayAux = $this->prepareInformation($arrayData, $arrayNextTaskData["NEXT_TASK"]["TAS_UID"]);
|
||||
|
||||
foreach ($arrayAux as $value2) {
|
||||
$arrayNextTask[++$i] = $value2;
|
||||
$arrayNextTask[] = $value2;
|
||||
}
|
||||
} else {
|
||||
$arrayNextTask[++$i] = $arrayNextTaskData;
|
||||
$arrayNextTask[] = $arrayNextTaskData;
|
||||
}
|
||||
}
|
||||
|
||||
//1. There is no rule
|
||||
if (count($arrayNextTask) == 0) {
|
||||
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
|
||||
$oProcess = new Process();
|
||||
$oProcessFieds = $oProcess->Load( $_SESSION['PROCESS'] );
|
||||
if(isset($oProcessFieds['PRO_BPMN']) && $oProcessFieds['PRO_BPMN'] == 1){
|
||||
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_BPMN_RULE"));
|
||||
}else{
|
||||
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
|
||||
}
|
||||
}
|
||||
|
||||
//Return
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
2
workflow/engine/classes/model/BpmnLane.php
Normal file → Executable file
2
workflow/engine/classes/model/BpmnLane.php
Normal file → Executable file
@@ -78,7 +78,7 @@ class BpmnLane extends BaseBpmnLane {
|
||||
if (! is_null($prjUid)) {
|
||||
$c->add(BpmnLanePeer::PRJ_UID, $prjUid, Criteria::EQUAL);
|
||||
}
|
||||
|
||||
$c->addAscendingOrderByColumn(BpmnBoundPeer::BOU_REL_POSITION);
|
||||
$rs = BpmnLanePeer::doSelectRS($c);
|
||||
$rs->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ class Dynaform extends BaseDynaform
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function create ($aData)
|
||||
public function create ($aData, $pmTableUid='')
|
||||
{
|
||||
if (! isset( $aData['PRO_UID'] )) {
|
||||
throw (new PropelException( 'The dynaform cannot be created. The PRO_UID is empty.' ));
|
||||
@@ -194,6 +194,17 @@ class Dynaform extends BaseDynaform
|
||||
}
|
||||
|
||||
$con->commit();
|
||||
|
||||
//Add Audit Log
|
||||
$mode = isset($aData['MODE'])? $aData['MODE'] : 'Determined by Fields';
|
||||
$description = "";
|
||||
if($pmTableUid!=''){
|
||||
$pmTable = AdditionalTablesPeer::retrieveByPK( $pmTableUid );
|
||||
$addTabName = $pmTable->getAddTabName();
|
||||
$description = "Create from a PM Table: ".$addTabName.", ";
|
||||
}
|
||||
G::auditLog("CreateDynaform", $description."Dynaform Title: ".$aData['DYN_TITLE'].", Type: ".$aData['DYN_TYPE'].", Description: ".$aData['DYN_DESCRIPTION'].", Mode: ".$mode);
|
||||
|
||||
$sXml = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||
$sXml .= '<dynaForm type="' . $this->getDynType() . '" name="' . $this->getProUid() . '/' . $this->getDynUid() . '" width="500" enabletemplate="0" mode="" nextstepsave="prompt">' . "\n";
|
||||
$sXml .= '</dynaForm>';
|
||||
@@ -232,7 +243,7 @@ class Dynaform extends BaseDynaform
|
||||
|
||||
public function createFromPMTable ($aData, $pmTableUid)
|
||||
{
|
||||
$this->create( $aData );
|
||||
$this->create( $aData , $pmTableUid);
|
||||
$aData['DYN_UID'] = $this->getDynUid();
|
||||
//krumo(BasePeer::getFieldnames('Content'));
|
||||
$fields = array ();
|
||||
@@ -591,9 +602,17 @@ class Dynaform extends BaseDynaform
|
||||
try {
|
||||
$oPro = DynaformPeer::retrieveByPK( $ProUid );
|
||||
if (! is_null( $oPro )) {
|
||||
$title = $oPro->getDynTitle();
|
||||
$type = $oPro->getDynType();
|
||||
$description = $oPro->getDynDescription();
|
||||
|
||||
Content::removeContent( 'DYN_TITLE', '', $oPro->getDynUid() );
|
||||
Content::removeContent( 'DYN_DESCRIPTION', '', $oPro->getDynUid() );
|
||||
$iResult = $oPro->delete();
|
||||
|
||||
//Add Audit Log
|
||||
G::auditLog("DeleteDynaform", "Dynaform Title: ".$title.", Type: ".$type.", Description: ".$description);
|
||||
|
||||
if (file_exists( PATH_DYNAFORM . $oPro->getProUid() . PATH_SEP . $oPro->getDynUid() . '.xml' )) {
|
||||
unlink( PATH_DYNAFORM . $oPro->getProUid() . PATH_SEP . $oPro->getDynUid() . '.xml' );
|
||||
}
|
||||
|
||||
5
workflow/engine/classes/model/MessageApplication.php
Normal file
5
workflow/engine/classes/model/MessageApplication.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageApplication extends BaseMessageApplication
|
||||
{
|
||||
}
|
||||
|
||||
5
workflow/engine/classes/model/MessageApplicationPeer.php
Normal file
5
workflow/engine/classes/model/MessageApplicationPeer.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageApplicationPeer extends BaseMessageApplicationPeer
|
||||
{
|
||||
}
|
||||
|
||||
5
workflow/engine/classes/model/MessageEventDefinition.php
Normal file
5
workflow/engine/classes/model/MessageEventDefinition.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventDefinition extends BaseMessageEventDefinition
|
||||
{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventDefinitionPeer extends BaseMessageEventDefinitionPeer
|
||||
{
|
||||
}
|
||||
|
||||
5
workflow/engine/classes/model/MessageEventRelation.php
Normal file
5
workflow/engine/classes/model/MessageEventRelation.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventRelation extends BaseMessageEventRelation
|
||||
{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventRelationPeer extends BaseMessageEventRelationPeer
|
||||
{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventTaskRelation extends BaseMessageEventTaskRelation
|
||||
{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class MessageEventTaskRelationPeer extends BaseMessageEventTaskRelationPeer
|
||||
{
|
||||
}
|
||||
|
||||
@@ -326,6 +326,8 @@ class Process extends BaseProcess
|
||||
}
|
||||
|
||||
$aFields['PRO_DYNAFORMS'] = @unserialize( $aFields['PRO_DYNAFORMS'] );
|
||||
//Check if is BPMN process
|
||||
$aFields['PRO_BPMN'] = $this->isBpmnProcess($ProUid);
|
||||
|
||||
return $aFields;
|
||||
} else {
|
||||
@@ -1009,5 +1011,21 @@ class Process extends BaseProcess
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check is the Process is BPMN.
|
||||
*
|
||||
* @param string $ProUid the uid of the Prolication
|
||||
* @return int 1 if is BPMN process or 0 if a Normal process
|
||||
*/
|
||||
public function isBpmnProcess($proUid){
|
||||
$c = new Criteria("workflow");
|
||||
$c->add(BpmnProcessPeer::PRJ_UID, $proUid);
|
||||
$res = BpmnProcessPeer::doSelect($c);
|
||||
if( sizeof($res) == 0 ){
|
||||
return 0;
|
||||
}else{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class ListParticipatedLastMapBuilder
|
||||
|
||||
$tMap->addColumn('APP_TAS_TITLE', 'AppTasTitle', 'string', CreoleTypes::VARCHAR, true, 255);
|
||||
|
||||
$tMap->addColumn('APP_STATUS', 'AppStatus', 'string', CreoleTypes::VARCHAR, true, 20);
|
||||
$tMap->addColumn('APP_STATUS', 'AppStatus', 'string', CreoleTypes::VARCHAR, false, 20);
|
||||
|
||||
$tMap->addColumn('DEL_INDEX', 'DelIndex', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE_APPLICATION' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
*
|
||||
*
|
||||
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class MessageApplicationMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageApplicationMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the databasemap this map builder built.
|
||||
*
|
||||
* @return the databasemap
|
||||
*/
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* The doBuild() method builds the DatabaseMap
|
||||
*
|
||||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('MESSAGE_APPLICATION');
|
||||
$tMap->setPhpName('MessageApplication');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MSGAPP_UID', 'MsgappUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('APP_UID', 'AppUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('PRJ_UID', 'PrjUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID_THROW', 'EvnUidThrow', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID_CATCH', 'EvnUidCatch', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MSGAPP_VARIABLES', 'MsgappVariables', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
$tMap->addColumn('MSGAPP_CORRELATION', 'MsgappCorrelation', 'string', CreoleTypes::VARCHAR, true, 512);
|
||||
|
||||
$tMap->addColumn('MSGAPP_THROW_DATE', 'MsgappThrowDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
||||
|
||||
$tMap->addColumn('MSGAPP_CATCH_DATE', 'MsgappCatchDate', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||
|
||||
$tMap->addColumn('MSGAPP_STATUS', 'MsgappStatus', 'string', CreoleTypes::VARCHAR, true, 25);
|
||||
|
||||
$tMap->addValidator('MSGAPP_STATUS', 'validValues', 'propel.validator.ValidValuesValidator', 'READ|UNREAD', 'Please enter a valid value for MSGAPP_STATUS');
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageApplicationMapBuilder
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE_EVENT_DEFINITION' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
*
|
||||
*
|
||||
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class MessageEventDefinitionMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageEventDefinitionMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the databasemap this map builder built.
|
||||
*
|
||||
* @return the databasemap
|
||||
*/
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* The doBuild() method builds the DatabaseMap
|
||||
*
|
||||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('MESSAGE_EVENT_DEFINITION');
|
||||
$tMap->setPhpName('MessageEventDefinition');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MSGED_UID', 'MsgedUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('PRJ_UID', 'PrjUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID', 'EvnUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MSGT_UID', 'MsgtUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MSGED_USR_UID', 'MsgedUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MSGED_VARIABLES', 'MsgedVariables', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
$tMap->addColumn('MSGED_CORRELATION', 'MsgedCorrelation', 'string', CreoleTypes::VARCHAR, true, 512);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageEventDefinitionMapBuilder
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE_EVENT_RELATION' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
*
|
||||
*
|
||||
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class MessageEventRelationMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageEventRelationMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the databasemap this map builder built.
|
||||
*
|
||||
* @return the databasemap
|
||||
*/
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* The doBuild() method builds the DatabaseMap
|
||||
*
|
||||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('MESSAGE_EVENT_RELATION');
|
||||
$tMap->setPhpName('MessageEventRelation');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MSGER_UID', 'MsgerUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('PRJ_UID', 'PrjUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID_THROW', 'EvnUidThrow', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID_CATCH', 'EvnUidCatch', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageEventRelationMapBuilder
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE_EVENT_TASK_RELATION' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
*
|
||||
*
|
||||
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class MessageEventTaskRelationMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageEventTaskRelationMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the databasemap this map builder built.
|
||||
*
|
||||
* @return the databasemap
|
||||
*/
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* The doBuild() method builds the DatabaseMap
|
||||
*
|
||||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('MESSAGE_EVENT_TASK_RELATION');
|
||||
$tMap->setPhpName('MessageEventTaskRelation');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MSGETR_UID', 'MsgetrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('PRJ_UID', 'PrjUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('EVN_UID', 'EvnUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('TAS_UID', 'TasUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageEventTaskRelationMapBuilder
|
||||
@@ -69,7 +69,7 @@ class TaskMapBuilder
|
||||
|
||||
$tMap->addPrimaryKey('TAS_UID', 'TasUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('TAS_TYPE', 'TasType', 'string', CreoleTypes::VARCHAR, true, 20);
|
||||
$tMap->addColumn('TAS_TYPE', 'TasType', 'string', CreoleTypes::VARCHAR, true, 50);
|
||||
|
||||
$tMap->addColumn('TAS_DURATION', 'TasDuration', 'double', CreoleTypes::DOUBLE, true, null);
|
||||
|
||||
@@ -159,7 +159,7 @@ class TaskMapBuilder
|
||||
|
||||
$tMap->addColumn('TAS_SELFSERVICE_EXECUTION', 'TasSelfserviceExecution', 'string', CreoleTypes::VARCHAR, false, 15);
|
||||
|
||||
$tMap->addValidator('TAS_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|ADHOC|SUBPROCESS|HIDDEN|GATEWAYTOGATEWAY|WEBENTRYEVENT', 'Please enter a valid value for TAS_TYPE');
|
||||
$tMap->addValidator('TAS_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|ADHOC|SUBPROCESS|HIDDEN|GATEWAYTOGATEWAY|WEBENTRYEVENT|START-MESSAGE-EVENT|END-MESSAGE-EVENT|INTERMEDIATE-START-MESSAGE-EVENT|INTERMEDIATE-END-MESSAGE-EVENT', 'Please enter a valid value for TAS_TYPE');
|
||||
|
||||
$tMap->addValidator('TAS_TIMEUNIT', 'validValues', 'propel.validator.ValidValuesValidator', 'MINUTES|HOURS|DAYS|WEEKS|MONTHS', 'Please select a valid value for TAS_TIMEUNIT.');
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ abstract class BaseBpmnFlow extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $flo_position = 0;
|
||||
|
||||
/**
|
||||
/**
|
||||
* @var BpmnProject
|
||||
*/
|
||||
protected $aBpmnProject;
|
||||
@@ -365,7 +365,7 @@ abstract class BaseBpmnFlow extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Get the [flo_position] column value.
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getFloPosition()
|
||||
@@ -374,7 +374,7 @@ abstract class BaseBpmnFlow extends BaseObject implements Persistent
|
||||
return $this->flo_position;
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* Set the value of [flo_uid] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
@@ -780,7 +780,7 @@ abstract class BaseBpmnFlow extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* Set the value of [flo_position] column.
|
||||
*
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
@@ -794,9 +794,9 @@ abstract class BaseBpmnFlow extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if ($this->flo_position !== $v || $v === 0) {
|
||||
$this->flo_position = $v;
|
||||
$this->modifiedColumns[] = BpmnFlowPeer::FLO_POSITION;
|
||||
}
|
||||
$this->flo_position = $v;
|
||||
$this->modifiedColumns[] = BpmnFlowPeer::FLO_POSITION;
|
||||
}
|
||||
|
||||
} // setFloPosition()
|
||||
|
||||
|
||||
1088
workflow/engine/classes/model/om/BaseMessageApplication.php
Normal file
1088
workflow/engine/classes/model/om/BaseMessageApplication.php
Normal file
File diff suppressed because it is too large
Load Diff
615
workflow/engine/classes/model/om/BaseMessageApplicationPeer.php
Normal file
615
workflow/engine/classes/model/om/BaseMessageApplicationPeer.php
Normal file
File diff suppressed because it is too large
Load Diff
858
workflow/engine/classes/model/om/BaseMessageEventDefinition.php
Normal file
858
workflow/engine/classes/model/om/BaseMessageEventDefinition.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
684
workflow/engine/classes/model/om/BaseMessageEventRelation.php
Normal file
684
workflow/engine/classes/model/om/BaseMessageEventRelation.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1201,7 +1201,7 @@
|
||||
</vendor>
|
||||
<column name="PRO_UID" type="VARCHAR" size="32" required="true" default=""/>
|
||||
<column name="TAS_UID" type="VARCHAR" size="32" required="true" primaryKey="true" default=""/>
|
||||
<column name="TAS_TYPE" type="VARCHAR" size="20" required="true" default="NORMAL"/>
|
||||
<column name="TAS_TYPE" type="VARCHAR" size="50" required="true" default="NORMAL"/>
|
||||
<column name="TAS_DURATION" type="DOUBLE" required="true" default="0"/>
|
||||
<column name="TAS_DELAY_TYPE" type="VARCHAR" size="30" required="true" default=""/>
|
||||
<column name="TAS_TEMPORIZER" type="DOUBLE" required="true" default="0"/>
|
||||
@@ -1248,7 +1248,7 @@
|
||||
<column name="TAS_SELFSERVICE_EXECUTION" type="VARCHAR" size="15" default="EVERY_TIME"/>
|
||||
|
||||
<validator column="TAS_TYPE">
|
||||
<rule name="validValues" value="NORMAL|ADHOC|SUBPROCESS|HIDDEN|GATEWAYTOGATEWAY|WEBENTRYEVENT" message="Please enter a valid value for TAS_TYPE"/>
|
||||
<rule name="validValues" value="NORMAL|ADHOC|SUBPROCESS|HIDDEN|GATEWAYTOGATEWAY|WEBENTRYEVENT|START-MESSAGE-EVENT|END-MESSAGE-EVENT|INTERMEDIATE-START-MESSAGE-EVENT|INTERMEDIATE-END-MESSAGE-EVENT" message="Please enter a valid value for TAS_TYPE"/>
|
||||
</validator>
|
||||
<validator column="TAS_TIMEUNIT">
|
||||
<rule name="validValues" value="MINUTES|HOURS|DAYS|WEEKS|MONTHS" message="Please select a valid value for TAS_TIMEUNIT."/>
|
||||
@@ -4015,7 +4015,7 @@
|
||||
<column name="APP_TITLE" type="VARCHAR" size="255" required="true" default=""/>
|
||||
<column name="APP_PRO_TITLE" type="VARCHAR" size="255" required="true" default=""/>
|
||||
<column name="APP_TAS_TITLE" type="VARCHAR" size="255" required="true" default=""/>
|
||||
<column name="APP_STATUS" type="VARCHAR" size="20" required="true" default="0"/>
|
||||
<column name="APP_STATUS" type="VARCHAR" size="20" required="false" default="0"/>
|
||||
<column name="DEL_INDEX" type="INTEGER" required="true" default="0"/>
|
||||
<column name="DEL_PREVIOUS_USR_UID" type="VARCHAR" size="32" default=""/>
|
||||
<column name="DEL_PREVIOUS_USR_USERNAME" type="VARCHAR" size="100" default=""/>
|
||||
@@ -4368,5 +4368,93 @@
|
||||
<rule name="validValues" value="ENABLED|DISABLED" message="Please enter a valid value for WEE_STATUS" />
|
||||
</validator>
|
||||
</table>
|
||||
|
||||
<table name="MESSAGE_EVENT_DEFINITION">
|
||||
<vendor type="mysql">
|
||||
<parameter name="Name" value="MESSAGE_EVENT_DEFINITION" />
|
||||
<parameter name="Engine" value="InnoDB" />
|
||||
<parameter name="Version" value="10" />
|
||||
<parameter name="Row_format" value="Dynamic" />
|
||||
<parameter name="Data_free" value="0" />
|
||||
<parameter name="Auto_increment" value="" />
|
||||
<parameter name="Check_time" value="" />
|
||||
<parameter name="Collation" value="utf8_general_ci" />
|
||||
<parameter name="Checksum" value="" />
|
||||
<parameter name="Create_options" value="" />
|
||||
</vendor>
|
||||
<column name="MSGED_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="PRJ_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="MSGT_UID" type="VARCHAR" size="32" required="true" default="" />
|
||||
<column name="MSGED_USR_UID" type="VARCHAR" size="32" required="true" default="" />
|
||||
<column name="MSGED_VARIABLES" type="LONGVARCHAR" required="true" default="" />
|
||||
<column name="MSGED_CORRELATION" type="VARCHAR" size="512" required="true" default="" />
|
||||
</table>
|
||||
|
||||
<table name="MESSAGE_EVENT_RELATION">
|
||||
<vendor type="mysql">
|
||||
<parameter name="Name" value="MESSAGE_EVENT_RELATION" />
|
||||
<parameter name="Engine" value="InnoDB" />
|
||||
<parameter name="Version" value="10" />
|
||||
<parameter name="Row_format" value="Dynamic" />
|
||||
<parameter name="Data_free" value="0" />
|
||||
<parameter name="Auto_increment" value="" />
|
||||
<parameter name="Check_time" value="" />
|
||||
<parameter name="Collation" value="utf8_general_ci" />
|
||||
<parameter name="Checksum" value="" />
|
||||
<parameter name="Create_options" value="" />
|
||||
</vendor>
|
||||
<column name="MSGER_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="PRJ_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID_THROW" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID_CATCH" type="VARCHAR" size="32" required="true" />
|
||||
</table>
|
||||
|
||||
<table name="MESSAGE_EVENT_TASK_RELATION">
|
||||
<vendor type="mysql">
|
||||
<parameter name="Name" value="MESSAGE_EVENT_TASK_RELATION" />
|
||||
<parameter name="Engine" value="InnoDB" />
|
||||
<parameter name="Version" value="10" />
|
||||
<parameter name="Row_format" value="Dynamic" />
|
||||
<parameter name="Data_free" value="0" />
|
||||
<parameter name="Auto_increment" value="" />
|
||||
<parameter name="Check_time" value="" />
|
||||
<parameter name="Collation" value="utf8_general_ci" />
|
||||
<parameter name="Checksum" value="" />
|
||||
<parameter name="Create_options" value="" />
|
||||
</vendor>
|
||||
<column name="MSGETR_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="PRJ_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="TAS_UID" type="VARCHAR" size="32" required="true" />
|
||||
</table>
|
||||
|
||||
<table name="MESSAGE_APPLICATION">
|
||||
<vendor type="mysql">
|
||||
<parameter name="Name" value="MESSAGE_APPLICATION" />
|
||||
<parameter name="Engine" value="InnoDB" />
|
||||
<parameter name="Version" value="10" />
|
||||
<parameter name="Row_format" value="Dynamic" />
|
||||
<parameter name="Data_free" value="0" />
|
||||
<parameter name="Auto_increment" value="" />
|
||||
<parameter name="Check_time" value="" />
|
||||
<parameter name="Collation" value="utf8_general_ci" />
|
||||
<parameter name="Checksum" value="" />
|
||||
<parameter name="Create_options" value="" />
|
||||
</vendor>
|
||||
<column name="MSGAPP_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="APP_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="PRJ_UID" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID_THROW" type="VARCHAR" size="32" required="true" />
|
||||
<column name="EVN_UID_CATCH" type="VARCHAR" size="32" required="true" />
|
||||
<column name="MSGAPP_VARIABLES" type="LONGVARCHAR" required="true" default="" />
|
||||
<column name="MSGAPP_CORRELATION" type="VARCHAR" size="512" required="true" default="" />
|
||||
<column name="MSGAPP_THROW_DATE" type="TIMESTAMP" required="true" />
|
||||
<column name="MSGAPP_CATCH_DATE" type="TIMESTAMP" required="false" />
|
||||
<column name="MSGAPP_STATUS" type="VARCHAR" size="25" required="true" default="UNREAD" />
|
||||
<validator column="MSGAPP_STATUS">
|
||||
<rule name="validValues" value="READ|UNREAD" message="Please enter a valid value for MSGAPP_STATUS" />
|
||||
</validator>
|
||||
</table>
|
||||
</database>
|
||||
|
||||
|
||||
@@ -568,7 +568,7 @@ CREATE TABLE `TASK`
|
||||
(
|
||||
`PRO_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`TAS_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`TAS_TYPE` VARCHAR(20) default 'NORMAL' NOT NULL,
|
||||
`TAS_TYPE` VARCHAR(50) default 'NORMAL' NOT NULL,
|
||||
`TAS_DURATION` DOUBLE default 0 NOT NULL,
|
||||
`TAS_DELAY_TYPE` VARCHAR(30) default '' NOT NULL,
|
||||
`TAS_TEMPORIZER` DOUBLE default 0 NOT NULL,
|
||||
@@ -2263,7 +2263,7 @@ CREATE TABLE `LIST_PARTICIPATED_LAST`
|
||||
`APP_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_PRO_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_TAS_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_STATUS` VARCHAR(20) default '0' NOT NULL,
|
||||
`APP_STATUS` VARCHAR(20) default '0',
|
||||
`DEL_INDEX` INTEGER default 0 NOT NULL,
|
||||
`DEL_PREVIOUS_USR_UID` VARCHAR(32) default '',
|
||||
`DEL_PREVIOUS_USR_USERNAME` VARCHAR(100) default '',
|
||||
@@ -2521,3 +2521,77 @@ CREATE TABLE `WEB_ENTRY_EVENT`
|
||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8';
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE_EVENT_DEFINITION
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS MESSAGE_EVENT_DEFINITION;
|
||||
|
||||
CREATE TABLE MESSAGE_EVENT_DEFINITION
|
||||
(
|
||||
MSGED_UID VARCHAR(32) NOT NULL,
|
||||
PRJ_UID VARCHAR(32) NOT NULL,
|
||||
EVN_UID VARCHAR(32) NOT NULL,
|
||||
MSGT_UID VARCHAR(32) NOT NULL DEFAULT '',
|
||||
MSGED_USR_UID VARCHAR(32) NOT NULL DEFAULT '',
|
||||
MSGED_VARIABLES MEDIUMTEXT NOT NULL DEFAULT '',
|
||||
MSGED_CORRELATION VARCHAR(512) NOT NULL DEFAULT '',
|
||||
|
||||
PRIMARY KEY (MSGED_UID)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET='utf8';
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE_EVENT_RELATION
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS MESSAGE_EVENT_RELATION;
|
||||
|
||||
CREATE TABLE MESSAGE_EVENT_RELATION
|
||||
(
|
||||
MSGER_UID VARCHAR(32) NOT NULL,
|
||||
PRJ_UID VARCHAR(32) NOT NULL,
|
||||
EVN_UID_THROW VARCHAR(32) NOT NULL,
|
||||
EVN_UID_CATCH VARCHAR(32) NOT NULL,
|
||||
|
||||
PRIMARY KEY (MSGER_UID)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET='utf8';
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE_EVENT_TASK_RELATION
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS MESSAGE_EVENT_TASK_RELATION;
|
||||
|
||||
CREATE TABLE MESSAGE_EVENT_TASK_RELATION
|
||||
(
|
||||
MSGETR_UID VARCHAR(32) NOT NULL,
|
||||
PRJ_UID VARCHAR(32) NOT NULL,
|
||||
EVN_UID VARCHAR(32) NOT NULL,
|
||||
TAS_UID VARCHAR(32) NOT NULL,
|
||||
|
||||
PRIMARY KEY (MSGETR_UID)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET='utf8';
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE_APPLICATION
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS MESSAGE_APPLICATION;
|
||||
|
||||
CREATE TABLE MESSAGE_APPLICATION
|
||||
(
|
||||
MSGAPP_UID VARCHAR(32) NOT NULL,
|
||||
APP_UID VARCHAR(32) NOT NULL,
|
||||
PRJ_UID VARCHAR(32) NOT NULL,
|
||||
EVN_UID_THROW VARCHAR(32) NOT NULL,
|
||||
EVN_UID_CATCH VARCHAR(32) NOT NULL,
|
||||
MSGAPP_VARIABLES MEDIUMTEXT NOT NULL DEFAULT '',
|
||||
MSGAPP_CORRELATION VARCHAR(512) NOT NULL DEFAULT '',
|
||||
MSGAPP_THROW_DATE DATETIME NOT NULL,
|
||||
MSGAPP_CATCH_DATE DATETIME,
|
||||
MSGAPP_STATUS VARCHAR(25) NOT NULL DEFAULT 'UNREAD',
|
||||
|
||||
PRIMARY KEY (MSGAPP_UID)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET='utf8';
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user