MT-12
This commit is contained in:
@@ -65,19 +65,12 @@ class AssignmentRulesMigrator implements Importable, Exportable
|
|||||||
public function export($prj_uid)
|
public function export($prj_uid)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$oData = new \StdClass();
|
$oAssignRules = new \StdClass();
|
||||||
$oData->process = $this->processes->getProcessRow($prj_uid, false);
|
$oAssignRules->tasks = $this->processes->getTaskRows($prj_uid);
|
||||||
$oData->tasks = $this->processes->getTaskRows($prj_uid);
|
$oAssignRules->taskusers = $this->processes->getTaskUserRows($oAssignRules->tasks);
|
||||||
$oData->routes = $this->processes->getRouteRows($prj_uid);
|
|
||||||
$oData->lanes = $this->processes->getLaneRows($prj_uid);
|
|
||||||
$oData->gateways = $this->processes->getGatewayRows($prj_uid);
|
|
||||||
$oData->steps = $this->processes->getStepRows($prj_uid);
|
|
||||||
$oData->triggers = $this->processes->getTriggerRows($prj_uid);
|
|
||||||
$assignmentData = new \StdClass();
|
|
||||||
$assignmentData->taskusers = $this->processes->getTaskUserRows($oData->tasks);
|
|
||||||
|
|
||||||
$result = array(
|
$result = array(
|
||||||
'workflow-definition' => (array)$assignmentData
|
'workflow-definition' => (array)$oAssignRules
|
||||||
);
|
);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class TriggersMigrator implements Importable, Exportable
|
|||||||
try {
|
try {
|
||||||
$oData = new \StdClass();
|
$oData = new \StdClass();
|
||||||
$oDataTasks = $this->processes->getTaskRows($prj_uid);
|
$oDataTasks = $this->processes->getTaskRows($prj_uid);
|
||||||
$oData->triggers = $this->processes->getTriggerRows($oDataTasks);
|
$oData->triggers = $this->processes->getTriggerRows($prj_uid);
|
||||||
$oData->steptriggers = $this->processes->getStepTriggerRows($oDataTasks);
|
$oData->steptriggers = $this->processes->getStepTriggerRows($oDataTasks);
|
||||||
|
|
||||||
$result = array(
|
$result = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user