Add MESSAGE bpmn 2.0 functionality end points
This commit is contained in:
19
workflow/engine/classes/model/Message.php
Normal file
19
workflow/engine/classes/model/Message.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
require_once 'classes/model/om/BaseMessage.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'MESSAGE' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class Message extends BaseMessage {
|
||||
|
||||
} // Message
|
||||
19
workflow/engine/classes/model/MessageDetail.php
Normal file
19
workflow/engine/classes/model/MessageDetail.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
require_once 'classes/model/om/BaseMessageDetail.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'MESSAGE_DETAIL' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class MessageDetail extends BaseMessageDetail {
|
||||
|
||||
} // MessageDetail
|
||||
23
workflow/engine/classes/model/MessageDetailPeer.php
Normal file
23
workflow/engine/classes/model/MessageDetailPeer.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// include base peer class
|
||||
require_once 'classes/model/om/BaseMessageDetailPeer.php';
|
||||
|
||||
// include object class
|
||||
include_once 'classes/model/MessageDetail.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'MESSAGE_DETAIL' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class MessageDetailPeer extends BaseMessageDetailPeer {
|
||||
|
||||
} // MessageDetailPeer
|
||||
23
workflow/engine/classes/model/MessagePeer.php
Normal file
23
workflow/engine/classes/model/MessagePeer.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// include base peer class
|
||||
require_once 'classes/model/om/BaseMessagePeer.php';
|
||||
|
||||
// include object class
|
||||
include_once 'classes/model/Message.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'MESSAGE' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class MessagePeer extends BaseMessagePeer {
|
||||
|
||||
} // MessagePeer
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE_DETAIL' 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 MessageDetailMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageDetailMapBuilder';
|
||||
|
||||
/**
|
||||
* 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_DETAIL');
|
||||
$tMap->setPhpName('MessageDetail');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MD_UID', 'MdUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MES_UID', 'MesUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MD_TYPE', 'MdType', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
$tMap->addColumn('MD_NAME', 'MdName', 'string', CreoleTypes::VARCHAR, false, 255);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageDetailMapBuilder
|
||||
78
workflow/engine/classes/model/map/MessageMapBuilder.php
Normal file
78
workflow/engine/classes/model/map/MessageMapBuilder.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'MESSAGE' 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 MessageMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.MessageMapBuilder';
|
||||
|
||||
/**
|
||||
* 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');
|
||||
$tMap->setPhpName('Message');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('MES_UID', 'MesUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('PRJ_UID', 'PrjUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('MES_NAME', 'MesName', 'string', CreoleTypes::VARCHAR, false, 255);
|
||||
|
||||
$tMap->addColumn('MES_CONDITION', 'MesCondition', 'string', CreoleTypes::VARCHAR, false, 255);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // MessageMapBuilder
|
||||
684
workflow/engine/classes/model/om/BaseMessage.php
Normal file
684
workflow/engine/classes/model/om/BaseMessage.php
Normal file
File diff suppressed because it is too large
Load Diff
684
workflow/engine/classes/model/om/BaseMessageDetail.php
Normal file
684
workflow/engine/classes/model/om/BaseMessageDetail.php
Normal file
File diff suppressed because it is too large
Load Diff
582
workflow/engine/classes/model/om/BaseMessageDetailPeer.php
Normal file
582
workflow/engine/classes/model/om/BaseMessageDetailPeer.php
Normal file
File diff suppressed because it is too large
Load Diff
582
workflow/engine/classes/model/om/BaseMessagePeer.php
Normal file
582
workflow/engine/classes/model/om/BaseMessagePeer.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4176,5 +4176,17 @@
|
||||
<column name="TYPE" type="VARCHAR" size="255" required="true" primaryKey="true" default=""/>
|
||||
<column name="TYP_UID" type="VARCHAR" size="32" required="true" default=""/>
|
||||
</table>
|
||||
<table name="MESSAGE">
|
||||
<column name="MES_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="PRJ_UID" type="VARCHAR" size="32" required="true"/>
|
||||
<column name="MES_NAME" type="VARCHAR" size="255" default=""/>
|
||||
<column name="MES_CONDITION" type="VARCHAR" size="255" default=""/>
|
||||
</table>
|
||||
<table name="MESSAGE_DETAIL">
|
||||
<column name="MD_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||
<column name="MES_UID" type="VARCHAR" size="32" required="true"/>
|
||||
<column name="MD_TYPE" type="VARCHAR" size="32" default=""/>
|
||||
<column name="MD_NAME" type="VARCHAR" size="255" default=""/>
|
||||
</table>
|
||||
</database>
|
||||
|
||||
|
||||
@@ -486,10 +486,10 @@ CREATE TABLE `ROUTE`
|
||||
`ROU_PARENT` VARCHAR(32) default '0' NOT NULL,
|
||||
`PRO_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`TAS_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`ROU_NEXT_TASK` VARCHAR(32) default '0' NOT NULL,
|
||||
`ROU_NEXT_TASK` VARCHAR(32) default '0' NOT NULL,
|
||||
`ROU_CASE` INTEGER default 0 NOT NULL,
|
||||
`ROU_TYPE` VARCHAR(25) default 'SEQUENTIAL' NOT NULL,
|
||||
`ROU_DEFAULT` INTEGER default 0 NOT NULL,
|
||||
`ROU_DEFAULT` INTEGER default 0 NOT NULL,
|
||||
`ROU_CONDITION` VARCHAR(512) default '' NOT NULL,
|
||||
`ROU_TO_LAST_USER` VARCHAR(20) default 'FALSE' NOT NULL,
|
||||
`ROU_OPTIONAL` VARCHAR(20) default 'FALSE' NOT NULL,
|
||||
@@ -1207,7 +1207,7 @@ CREATE TABLE `APP_HISTORY`
|
||||
`PRO_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`TAS_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`DYN_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`OBJ_TYPE` VARCHAR(20) default 'DYNAFORM' NOT NULL,
|
||||
`OBJ_TYPE` VARCHAR(20) default 'DYNAFORM' NOT NULL,
|
||||
`USR_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`APP_STATUS` VARCHAR(100) default '' NOT NULL,
|
||||
`HISTORY_DATE` DATETIME,
|
||||
@@ -2380,6 +2380,35 @@ CREATE TABLE `LIST_UNASSIGNED_GROUP`
|
||||
`TYP_UID` VARCHAR(32) default '' NOT NULL,
|
||||
PRIMARY KEY (`UNA_UID`,`USR_UID`,`TYPE`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Unassiged list';
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `MESSAGE`;
|
||||
|
||||
|
||||
CREATE TABLE `MESSAGE`
|
||||
(
|
||||
`MES_UID` VARCHAR(32) NOT NULL,
|
||||
`PRJ_UID` VARCHAR(32) NOT NULL,
|
||||
`MES_NAME` VARCHAR(255) default '',
|
||||
`MES_CONDITION` VARCHAR(255) default '',
|
||||
PRIMARY KEY (`MES_UID`)
|
||||
)ENGINE=InnoDB ;
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- MESSAGE_DETAIL
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `MESSAGE_DETAIL`;
|
||||
|
||||
|
||||
CREATE TABLE `MESSAGE_DETAIL`
|
||||
(
|
||||
`MD_UID` VARCHAR(32) NOT NULL,
|
||||
`MES_UID` VARCHAR(32) NOT NULL,
|
||||
`MD_TYPE` VARCHAR(32) default '',
|
||||
`MD_NAME` VARCHAR(255) default '',
|
||||
PRIMARY KEY (`MD_UID`)
|
||||
)ENGINE=InnoDB ;
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
|
||||
415
workflow/engine/src/ProcessMaker/BusinessModel/Message.php
Normal file
415
workflow/engine/src/ProcessMaker/BusinessModel/Message.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -37,6 +37,7 @@ debug = 1
|
||||
trigger-wizard = "ProcessMaker\Services\Api\Project\TriggerWizard"
|
||||
category = "ProcessMaker\Services\Api\ProcessCategory"
|
||||
process-variable = "ProcessMaker\Services\Api\Project\Variable"
|
||||
message = "ProcessMaker\Services\Api\Project\Message"
|
||||
|
||||
[alias: projects]
|
||||
project = "ProcessMaker\Services\Api\Project"
|
||||
|
||||
Reference in New Issue
Block a user