loading standalone gateways and events during export and import
This commit is contained in:
@@ -3056,8 +3056,9 @@ class Processes {
|
||||
}
|
||||
}
|
||||
else*/
|
||||
/*if(isset($oData->gateways))
|
||||
$this->createGatewayRows($oData->gateways);*/
|
||||
|
||||
if(isset($oData->gateways))
|
||||
$this->createGatewayRows($oData->gateways);
|
||||
|
||||
$this->createDynaformRows($oData->dynaforms);
|
||||
$this->createInputRows($oData->inputs);
|
||||
|
||||
@@ -415,7 +415,11 @@ class Tasks
|
||||
$oGateway = new Gateway();
|
||||
if($oGateway->gatewayExists ($row['GAT_UID']))
|
||||
$oGateway->remove($row['GAT_UID']);
|
||||
$res = $oGateway->createRow($row);
|
||||
|
||||
if($row['TAS_UID'] != '' && $row['GAT_NEXT_TASK'] != '')
|
||||
continue;
|
||||
else
|
||||
$res = $oGateway->createRow($row);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -154,14 +154,14 @@ ProcessMapContext.prototype.exportProcess= function()
|
||||
frame : false,
|
||||
height : 200,
|
||||
defaultType : 'textfield',
|
||||
defaults : {width: 180},
|
||||
width : 400,
|
||||
buttonAlign : 'center',
|
||||
items: [
|
||||
{
|
||||
xtype : 'fieldset',
|
||||
bodyStyle :'padding:10px 10px 10px 10px;',
|
||||
bodyStyle :'padding:10px 10px 10px 20px;',
|
||||
title : 'Process Info',
|
||||
width : 370,
|
||||
//width : 370,
|
||||
collapsible: false,
|
||||
autoHeight : true,
|
||||
buttonAlign: 'center',
|
||||
@@ -223,7 +223,7 @@ ProcessMapContext.prototype.exportProcess= function()
|
||||
collapsible: false,
|
||||
maximizable: false,
|
||||
sizeable : false,
|
||||
width : 400,
|
||||
width : 420,
|
||||
height : 210,
|
||||
resizable : false,
|
||||
layout : 'fit',
|
||||
|
||||
@@ -1379,35 +1379,33 @@ TaskContext.prototype.saveTaskProperties= function()
|
||||
alert(tas_start);
|
||||
|
||||
//Checking checkbox fields
|
||||
// if(typeof tas_start != 'undefined' && tas_start != ''){
|
||||
// if(tas_start == 'on')
|
||||
// saveTaskform['TAS_START'] = 'TRUE';
|
||||
// else
|
||||
// saveTaskform['TAS_START'] = 'FALSE';
|
||||
// }
|
||||
if(typeof tas_start != 'undefined' && tas_start != ''){
|
||||
if(tas_start == 'on')
|
||||
saveTaskform['TAS_START'] = 'TRUE';
|
||||
}
|
||||
else
|
||||
saveTaskform['TAS_START'] = 'FALSE';
|
||||
|
||||
if(tas_start == 'on')
|
||||
tas_start = true;
|
||||
else if(typeof tas_start == 'undefined')
|
||||
tas_start = false;
|
||||
if(typeof tas_transfer_fly != 'undefined' && tas_transfer_fly != ''){
|
||||
if(tas_transfer_fly == 'on')
|
||||
saveTaskform['TAS_TRANSFER_FLY'] = 'TRUE';
|
||||
else
|
||||
saveTaskform['TAS_TRANSFER_FLY'] = 'FALSE';
|
||||
}
|
||||
else
|
||||
saveTaskform['TAS_TRANSFER_FLY'] = 'FALSE';
|
||||
|
||||
if(typeof send_email != 'undefined' && send_email != ''){
|
||||
if(send_email == 'on')
|
||||
saveTaskform['SEND_EMAIL'] = 'TRUE';
|
||||
else
|
||||
send_email['SEND_EMAIL'] = 'FALSE';
|
||||
}
|
||||
else
|
||||
saveTaskform['SEND_EMAIL'] = 'FALSE';
|
||||
|
||||
if(typeof tas_type != 'undefined' && tas_type != ''){
|
||||
if(tas_type == 'on')
|
||||
saveTaskform['TAS_TYPE'] = 'ADHOC';
|
||||
else
|
||||
saveTaskform['TAS_TYPE'] = 'NORMAL';
|
||||
}
|
||||
else
|
||||
saveTaskform['TAS_TYPE'] = 'NORMAL';
|
||||
|
||||
var object_data = Ext.util.JSON.encode(saveTaskform);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user