Adding Exporter for BPMN Projects (2nd commit)

This commit is contained in:
Erik Amaru Ortiz
2014-02-28 19:46:14 -04:00
parent 22d5f1bc35
commit 1c46a002f3
6 changed files with 75 additions and 40 deletions

View File

@@ -64,7 +64,7 @@ class BpmnFlow extends BaseBpmnFlow
return BpmnFlowPeer::doSelect($c);
}
public static function getAll($prjUid = null, $start = null, $limit = null, $filter = '', $changeCaseTo = CASE_UPPER)
public static function getAll($prjUid = null, $start = null, $limit = null, $filter = '', $changeCaseTo = CASE_UPPER, $decodeState = true)
{
//TODO implement $start, $limit and $filter
$c = new Criteria('workflow');
@@ -80,7 +80,9 @@ class BpmnFlow extends BaseBpmnFlow
while ($rs->next()) {
$flow = $rs->getRow();
$flow["FLO_STATE"] = @json_decode($flow["FLO_STATE"], true);
if ($decodeState) {
$flow["FLO_STATE"] = @json_decode($flow["FLO_STATE"], true);
}
//$flow["FLO_IS_INMEDIATE"] = $flow["FLO_IS_INMEDIATE"] == 1 ? true : false;
$flow = $changeCaseTo !== CASE_UPPER ? array_change_key_case($flow, CASE_LOWER) : $flow;