Was working on assigning system variable in all other form in EXTJS.
This commit is contained in:
@@ -1876,6 +1876,8 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
id: 'btnCondition',
|
id: 'btnCondition',
|
||||||
text: 'Assign Condition',
|
text: 'Assign Condition',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'grid';
|
||||||
|
workflow.gridField = 'CTO_CONDITION';
|
||||||
var rowSelected = Objectsgrid.getSelectionModel().getSelections();
|
var rowSelected = Objectsgrid.getSelectionModel().getSelections();
|
||||||
if(rowSelected == '')
|
if(rowSelected == '')
|
||||||
workflow.gridObjectRowSelected = Objectsgrid;
|
workflow.gridObjectRowSelected = Objectsgrid;
|
||||||
@@ -2125,7 +2127,39 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
//plugins: [editor],
|
//plugins: [editor],
|
||||||
//loadMask : true,
|
//loadMask : true,
|
||||||
loadingText : 'Loading...',
|
loadingText : 'Loading...',
|
||||||
border: false
|
border: false,
|
||||||
|
listeners: {
|
||||||
|
//rowdblclick: alert("ok"),
|
||||||
|
rowdblclick: function(){
|
||||||
|
var objectSelected = workflow.variablesAction;
|
||||||
|
switch(objectSelected)
|
||||||
|
{
|
||||||
|
case 'grid':
|
||||||
|
var getObjectGridRow = workflow.gridObjectRowSelected;
|
||||||
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var FieldSelected = workflow.gridField;
|
||||||
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
//Assigned new object with condition
|
||||||
|
if(typeof getObjectGridRow.colModel != 'undefined')
|
||||||
|
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
||||||
|
//Assigning / updating Condition for a row
|
||||||
|
else
|
||||||
|
getObjectGridRow[0].set(FieldSelected,rowLabel);
|
||||||
|
window.hide();
|
||||||
|
break;
|
||||||
|
case 'form':
|
||||||
|
var FormSelected = workflow.formSelected;
|
||||||
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var FieldSelected = workflow.fieldId;
|
||||||
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
Ext.getCmp(FieldSelected).setValue(rowLabel);
|
||||||
|
window.hide();
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
title:'System',
|
title:'System',
|
||||||
@@ -2152,20 +2186,33 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
listeners: {
|
listeners: {
|
||||||
//rowdblclick: alert("ok"),
|
//rowdblclick: alert("ok"),
|
||||||
rowdblclick: function(){
|
rowdblclick: function(){
|
||||||
|
var objectSelected = workflow.variablesAction;
|
||||||
|
switch(objectSelected)
|
||||||
|
{
|
||||||
|
case 'grid':
|
||||||
var getObjectGridRow = workflow.gridObjectRowSelected;
|
var getObjectGridRow = workflow.gridObjectRowSelected;
|
||||||
|
|
||||||
var rowSelected = this.getSelectionModel().getSelected();
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var FieldSelected = workflow.gridField;
|
||||||
var rowLabel = rowSelected.data.variable;
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
|
||||||
//Assigned new object with condition
|
//Assigned new object with condition
|
||||||
if(typeof getObjectGridRow.colModel != 'undefined')
|
if(typeof getObjectGridRow.colModel != 'undefined')
|
||||||
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
||||||
//Assigning / updating Condition for a row
|
//Assigning / updating Condition for a row
|
||||||
else
|
else
|
||||||
getObjectGridRow[0].set("CTO_CONDITION",rowLabel);
|
getObjectGridRow[0].set(FieldSelected,rowLabel);
|
||||||
window.hide();
|
window.hide();
|
||||||
//return rowSelected;
|
break;
|
||||||
//Ext.getCmp('activator').setIcon();
|
case 'form':
|
||||||
|
var FormSelected = workflow.formSelected;
|
||||||
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var FieldSelected = workflow.fieldId;
|
||||||
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
Ext.getCmp(FieldSelected).setValue(rowLabel);
|
||||||
|
window.hide();
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
@@ -2193,12 +2240,34 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
border: false,
|
border: false,
|
||||||
listeners: {
|
listeners: {
|
||||||
//rowdblclick: alert("ok"),
|
//rowdblclick: alert("ok"),
|
||||||
rowclick: function(){
|
rowdblclick: function(){
|
||||||
|
var objectSelected = workflow.variablesAction;
|
||||||
|
switch(objectSelected)
|
||||||
|
{
|
||||||
|
case 'grid':
|
||||||
|
var getObjectGridRow = workflow.gridObjectRowSelected;
|
||||||
var rowSelected = this.getSelectionModel().getSelected();
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
var rowLabel = rowSelected.data.label;
|
var FieldSelected = workflow.gridField;
|
||||||
return rowSelected;
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
//Assigned new object with condition
|
||||||
|
if(typeof getObjectGridRow.colModel != 'undefined')
|
||||||
|
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
||||||
|
//Assigning / updating Condition for a row
|
||||||
|
else
|
||||||
|
getObjectGridRow[0].set(FieldSelected,rowLabel);
|
||||||
window.hide();
|
window.hide();
|
||||||
//Ext.getCmp('activator').setIcon();
|
break;
|
||||||
|
case 'form':
|
||||||
|
var FormSelected = workflow.formSelected;
|
||||||
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var FieldSelected = workflow.fieldId;
|
||||||
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
Ext.getCmp(FieldSelected).setValue(rowLabel);
|
||||||
|
window.hide();
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -977,6 +977,7 @@ ProcessOptions.prototype.dbConnection = function()
|
|||||||
|
|
||||||
ProcessOptions.prototype.addInputDoc= function(_5625)
|
ProcessOptions.prototype.addInputDoc= function(_5625)
|
||||||
{
|
{
|
||||||
|
var ProcMapObj= new ProcessMapContext();
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
|
|
||||||
var dynaFields = Ext.data.Record.create([
|
var dynaFields = Ext.data.Record.create([
|
||||||
@@ -1212,6 +1213,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
id: 'DestPath',
|
||||||
fieldLabel: 'Destination Path',
|
fieldLabel: 'Destination Path',
|
||||||
name: 'INP_DOC_DESTINATION_PATH',
|
name: 'INP_DOC_DESTINATION_PATH',
|
||||||
anchor:'100%'
|
anchor:'100%'
|
||||||
@@ -1224,8 +1226,15 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@@',
|
text: '@@',
|
||||||
name: 'selectorigin'
|
name: 'selectorigin',
|
||||||
//anchor:'15%'
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'DestPath' ;
|
||||||
|
workflow.formSelected = inputDocForm;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
|
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
@@ -1237,6 +1246,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
id:'tags',
|
||||||
fieldLabel: 'Tags',
|
fieldLabel: 'Tags',
|
||||||
name: 'INP_DOC_TAGS',
|
name: 'INP_DOC_TAGS',
|
||||||
anchor:'100%'
|
anchor:'100%'
|
||||||
@@ -1249,8 +1259,15 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@@',
|
text: '@@',
|
||||||
name: 'selectorigin'
|
name: 'selectorigin',
|
||||||
//anchor:'15%'
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'tags' ;
|
||||||
|
workflow.formSelected = inputDocForm;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
|
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
@@ -1393,8 +1410,9 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
INP_DOC_FORM_NEEDED : sFormNeeded,
|
INP_DOC_FORM_NEEDED : sFormNeeded,
|
||||||
INP_DOC_ORIGINAL : sOrig,
|
INP_DOC_ORIGINAL : sOrig,
|
||||||
INP_DOC_VERSIONING : sVers,
|
INP_DOC_VERSIONING : sVers,
|
||||||
INP_DOC_TAGS : 'INPUT', //By Default
|
INP_DOC_TAGS : sTags,
|
||||||
INP_DOC_DESCRIPTION : sDesc
|
INP_DOC_DESCRIPTION : sDesc,
|
||||||
|
INP_DOC_DESTINATION_PATH : sDestPath
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
Ext.MessageBox.alert ('Status','Input document has been created successfully.');
|
Ext.MessageBox.alert ('Status','Input document has been created successfully.');
|
||||||
@@ -1448,6 +1466,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
ProcessOptions.prototype.addOutputDoc= function(_5625)
|
ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||||
{
|
{
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
|
var ProcMapObj= new ProcessMapContext();
|
||||||
|
|
||||||
var dynaFields = Ext.data.Record.create([
|
var dynaFields = Ext.data.Record.create([
|
||||||
{
|
{
|
||||||
@@ -1657,6 +1676,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
|
id : 'filenameGenerated',
|
||||||
fieldLabel : 'Filename generated',
|
fieldLabel : 'Filename generated',
|
||||||
name : 'OUT_DOC_FILENAME',
|
name : 'OUT_DOC_FILENAME',
|
||||||
allowBlank : false,
|
allowBlank : false,
|
||||||
@@ -1671,7 +1691,15 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@@',
|
text: '@@',
|
||||||
name: 'selectorigin'
|
name: 'selectorigin',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'filenameGenerated' ;
|
||||||
|
workflow.formSelected = outputDocForm;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
|
|
||||||
//anchor:'95%'
|
//anchor:'95%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -1795,6 +1823,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
border :false,
|
border :false,
|
||||||
items : [{
|
items : [{
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
|
id : 'DestPath',
|
||||||
fieldLabel : 'Destination Path',
|
fieldLabel : 'Destination Path',
|
||||||
name : 'OUT_DOC_DESTINATION_PATH',
|
name : 'OUT_DOC_DESTINATION_PATH',
|
||||||
anchor :'100%'
|
anchor :'100%'
|
||||||
@@ -1807,7 +1836,14 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
xtype :'button',
|
xtype :'button',
|
||||||
title : ' ',
|
title : ' ',
|
||||||
text : '@@',
|
text : '@@',
|
||||||
name : 'selectorigin'
|
name : 'selectorigin',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'DestPath' ;
|
||||||
|
workflow.formSelected = outputDocForm;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
//anchor :'15%'
|
//anchor :'15%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -1820,6 +1856,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
border :false,
|
border :false,
|
||||||
items : [{
|
items : [{
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
|
id :'tags',
|
||||||
fieldLabel : 'Tags',
|
fieldLabel : 'Tags',
|
||||||
name : 'OUT_DOC_TAGS',
|
name : 'OUT_DOC_TAGS',
|
||||||
anchor :'100%'
|
anchor :'100%'
|
||||||
@@ -1832,7 +1869,14 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
xtype :'button',
|
xtype :'button',
|
||||||
title : ' ',
|
title : ' ',
|
||||||
text : '@@',
|
text : '@@',
|
||||||
name : 'selectorigin'
|
name : 'selectorigin',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'tags' ;
|
||||||
|
workflow.formSelected = outputDocForm;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
//anchor :'15%'
|
//anchor :'15%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ TaskContext.prototype.type="TaskContext";
|
|||||||
|
|
||||||
TaskContext.prototype.editTaskSteps = function(_3252){
|
TaskContext.prototype.editTaskSteps = function(_3252){
|
||||||
var taskExtObj = new TaskContext();
|
var taskExtObj = new TaskContext();
|
||||||
|
var ProcMapObj= new ProcessMapContext();
|
||||||
var pro_uid = _3252.scope.workflow.getUrlVars();
|
var pro_uid = _3252.scope.workflow.getUrlVars();
|
||||||
var taskId = _3252.scope.workflow.currentSelection.id;
|
var taskId = _3252.scope.workflow.currentSelection.id;
|
||||||
|
|
||||||
@@ -141,36 +142,83 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
remoteSort : false,
|
remoteSort : false,
|
||||||
autoLoad : true,
|
autoLoad : true,
|
||||||
fields : stepsFields
|
fields : stepsFields
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var btnCondition = new Ext.Button({
|
||||||
|
id: 'btnCondition',
|
||||||
|
text: 'Assign Condition',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'grid';
|
||||||
|
workflow.gridField = 'STEP_CONDITION';
|
||||||
|
var rowSelected = conditionGrid.getSelectionModel().getSelections();
|
||||||
|
if(rowSelected == '')
|
||||||
|
workflow.gridObjectRowSelected = conditionGrid;
|
||||||
|
else
|
||||||
|
workflow.gridObjectRowSelected = rowSelected;
|
||||||
|
//var rowSelected = Objectsgrid;
|
||||||
|
//workflow.gridObject = Objectsgrid;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
//var a = Ext.getCmp('btnCondition');
|
||||||
|
//alert (a);
|
||||||
|
|
||||||
|
//console.log(rowData);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
var toolbar = new Ext.Toolbar({
|
||||||
|
items: [btnCondition]
|
||||||
});
|
});
|
||||||
//availableSteps.load();
|
//availableSteps.load();
|
||||||
|
var conditionGrid = new Ext.grid.GridPanel({
|
||||||
|
store : taskSteps,
|
||||||
|
id : 'conditiongrid',
|
||||||
|
loadMask : true,
|
||||||
|
loadingText : 'Loading...',
|
||||||
|
// renderTo : 'cases-grid',
|
||||||
|
|
||||||
|
frame : false,
|
||||||
|
autoHeight : false,
|
||||||
|
enableDragDrop : true,
|
||||||
|
layout : 'form',
|
||||||
|
tbar: toolbar,
|
||||||
|
ddGroup : 'firstGridDDGroup',
|
||||||
|
|
||||||
|
|
||||||
var conditionsColumns = new Ext.grid.ColumnModel({
|
clicksToEdit: 1,
|
||||||
columns: [
|
minHeight :400,
|
||||||
{
|
height :400,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//plugins : [editor],
|
||||||
|
columns : [{
|
||||||
id: 'STEP_TITLE',
|
id: 'STEP_TITLE',
|
||||||
header: 'Title',
|
header: 'Title',
|
||||||
dataIndex: 'STEP_TITLE',
|
dataIndex: 'STEP_TITLE',
|
||||||
width: 280,
|
width: 280,
|
||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
//allowBlank: false
|
//alloBlank: false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
//id: 'STEP_TITLE',
|
id: 'STEP_CONDITION',
|
||||||
header: 'Condition',
|
header: 'Condition',
|
||||||
dataIndex: 'STEP_CONDITION',
|
dataIndex: 'STEP_CONDITION',
|
||||||
width: 250,
|
width: 250,
|
||||||
editable: true,
|
editable: true,
|
||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
})
|
})
|
||||||
},
|
|
||||||
{
|
|
||||||
header: 'Assign Condition',
|
|
||||||
width: 200,
|
|
||||||
renderer: function(val){return '<input type="button" value="@@" id="'+val+'"/>';}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -375,15 +423,17 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
defaults: {
|
defaults: {
|
||||||
width: 400
|
width: 400
|
||||||
},
|
},
|
||||||
items:[{
|
items:[conditionGrid]
|
||||||
xtype: 'grid',
|
/*xtype: 'grid',
|
||||||
|
name: 'conditionGrid',
|
||||||
ds: taskSteps,
|
ds: taskSteps,
|
||||||
cm: conditionsColumns,
|
cm: conditionsColumns,
|
||||||
height: 350,
|
height: 350,
|
||||||
loadMask : true,
|
loadMask : true,
|
||||||
loadingText : 'Loading...',
|
loadingText : 'Loading...',
|
||||||
border: false
|
border: false,
|
||||||
}]
|
tbar: toolbar }]*/
|
||||||
|
|
||||||
},{
|
},{
|
||||||
title:'Triggers',
|
title:'Triggers',
|
||||||
layout:'form',
|
layout:'form',
|
||||||
@@ -428,6 +478,8 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
});
|
});
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -718,7 +770,7 @@ TaskContext.prototype.editUsers= function(_5625)
|
|||||||
|
|
||||||
TaskContext.prototype.editTaskProperties= function(_5625)
|
TaskContext.prototype.editTaskProperties= function(_5625)
|
||||||
{
|
{
|
||||||
|
var ProcMapObj= new ProcessMapContext();
|
||||||
var taskExtObj = new TaskContext();
|
var taskExtObj = new TaskContext();
|
||||||
var taskId = _5625.scope.workflow.currentSelection.id;
|
var taskId = _5625.scope.workflow.currentSelection.id;
|
||||||
|
|
||||||
@@ -827,9 +879,11 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
id: 'priorityVariable',
|
||||||
fieldLabel: 'Variable for Case priority',
|
fieldLabel: 'Variable for Case priority',
|
||||||
name: 'TAS_PRIORITY_VARIABLE',
|
name: 'TAS_PRIORITY_VARIABLE',
|
||||||
anchor:'100%'
|
anchor:'100%'
|
||||||
|
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
columnWidth:.3,
|
columnWidth:.3,
|
||||||
@@ -839,7 +893,14 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@@',
|
text: '@@',
|
||||||
name: 'selectorigin'
|
name: 'selectorigin',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'priorityVariable' ;
|
||||||
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
//anchor:'15%'
|
//anchor:'15%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -1211,6 +1272,7 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
items: [{
|
items: [{
|
||||||
xtype: 'textarea',
|
xtype: 'textarea',
|
||||||
fieldLabel: 'Case Title',
|
fieldLabel: 'Case Title',
|
||||||
|
id: 'caseTitle',
|
||||||
name: 'TAS_DEF_TITLE',
|
name: 'TAS_DEF_TITLE',
|
||||||
height : 100,
|
height : 100,
|
||||||
//value: _5625.scope.workflow.taskDetails.TAS_ASSIGN_VARIABLE
|
//value: _5625.scope.workflow.taskDetails.TAS_ASSIGN_VARIABLE
|
||||||
@@ -1225,7 +1287,14 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@#',
|
text: '@#',
|
||||||
name: 'selectCaseTitle'
|
name: 'selectCaseTitle',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'caseTitle' ;
|
||||||
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
//anchor:'10%'
|
//anchor:'10%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -1241,10 +1310,12 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'textarea',
|
xtype: 'textarea',
|
||||||
|
id: 'caseDescription',
|
||||||
fieldLabel: 'Case Description',
|
fieldLabel: 'Case Description',
|
||||||
name: 'TAS_DEF_DESCRIPTION',
|
name: 'TAS_DEF_DESCRIPTION',
|
||||||
height : 100,
|
height : 100,
|
||||||
anchor:'100%'
|
anchor:'100%'
|
||||||
|
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
columnWidth:.3,
|
columnWidth:.3,
|
||||||
@@ -1255,7 +1326,14 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
xtype:'button',
|
xtype:'button',
|
||||||
title: ' ',
|
title: ' ',
|
||||||
text: '@#',
|
text: '@#',
|
||||||
name: 'selectCaseDesc'
|
name: 'selectCaseDesc',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'form';
|
||||||
|
workflow.fieldId= 'caseDescription' ;
|
||||||
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
}
|
||||||
//anchor:'10%'
|
//anchor:'10%'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -1409,6 +1487,7 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
{
|
{
|
||||||
var pro_uid = _5625.scope.workflow.getUrlVars();
|
var pro_uid = _5625.scope.workflow.getUrlVars();
|
||||||
var taskId = _5625.scope.workflow.currentSelection.id;
|
var taskId = _5625.scope.workflow.currentSelection.id;
|
||||||
|
var ProcMapObj= new ProcessMapContext();
|
||||||
|
|
||||||
var triggersFields = Ext.data.Record.create([
|
var triggersFields = Ext.data.Record.create([
|
||||||
{
|
{
|
||||||
@@ -1560,10 +1639,33 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
stepsTriggers.remove(r);
|
stepsTriggers.remove(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
var btnCondition = new Ext.Button({
|
||||||
|
id: 'btnCondition',
|
||||||
|
text: 'Assign Condition',
|
||||||
|
handler: function (s) {
|
||||||
|
workflow.variablesAction = 'grid';
|
||||||
|
workflow.gridField = 'ST_CONDITION';
|
||||||
|
var rowSelected = triggerGrid.getSelectionModel().getSelections();
|
||||||
|
if(rowSelected == '')
|
||||||
|
workflow.gridObjectRowSelected = triggerGrid;
|
||||||
|
else
|
||||||
|
workflow.gridObjectRowSelected = rowSelected;
|
||||||
|
//var rowSelected = Objectsgrid;
|
||||||
|
//workflow.gridObject = Objectsgrid;
|
||||||
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
|
console.log(rowData);
|
||||||
|
//var a = Ext.getCmp('btnCondition');
|
||||||
|
//alert (a);
|
||||||
|
|
||||||
|
//console.log(rowData);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var toolBar = new Ext.Toolbar({
|
var toolBar = new Ext.Toolbar({
|
||||||
items: [addBtn, removeBtn]
|
items: [addBtn, removeBtn, btnCondition]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user