%@ page contentType="text/javascript; charset=UTF-8" %>
<%@ include file="/portal/include/include_java.jsp" %>
/****************
the dialog definitions will be moved to an XML file! then read from the XML and rendered in JSON format.
****************/
var dialogDefinitions = {
'reportOptions': {
title:'',
items:[
{tabs:[
{name:'General',display:'',paths:['/analytics/report/config/general.do'],onunload:'reportOptions.onunload'},
{name:'Data',display:'',paths:['/analytics/report_config/data.jsp']},
{name:'Filters',display:'',paths:['/analytics/report_config/filtering.jsp']},
{name:'Indicators',display:'',paths:['/analytics/report_config/indicators.jsp']},
{name:'Display',display:'',paths:['/analytics/report/config/display.do']}
]
}
],
buttons:[
{display:'',onclick:'reportOptions.saveAndClose(this);'},
{display:'',onclick:'reportOptions.close(this);',cancel:true}
]
},
'addEditData': {
title:'',
items:[
{tabs:[
{display:'',paths:['/analytics/report/config/addEditData.do']}
]
}
],
buttons:[
{display:'',onclick:'addEditData.saveAndClose(this);'},
{display:'',onclick:'addEditData.close(this);',cancel:true}
]
},
'editFilterSet': {
title:'',
items:[
{tabs:[
{display:'',paths:['/analytics/report/config/quickFilter.do']}
]
}
],
buttons:[
{display:'',onclick:'editFilterSet.validateFilterSet(this);'},
{display:'',onclick:'editFilterSet.cancel(this);',cancel:true}
]
},
'addFilter': {
title:'',
items:[
{tabs:[
{display:'',paths:['/analytics/report/config/addFilter.do']}
]
}
],
buttons:[
{display:'',onclick:'addFilter.validateFilter(this);'},
{display:'',onclick:'addFilter.cancel(this);',cancel:true}
]
},
'admin.navigation.addEditButton': {
title:'',
items:[
{tabs:[
{display:'',paths:['/admin/navigation/addEditButton.jsp']}
]
}
],
buttons:[
{display:'',onclick:'addEditButton.saveAndClose(this);'},
{display:'',onclick:'addEditButton.close(this);',cancel:true}
]
},
'addNewRule': {
title:'',
items:[
{tabs:[
{display:'',paths:['/rules/getFreeformRule.do?asiDialogSize=large']}
]
}
],
buttons:[
]
},
'testRule':{
title:''+' "'+' ' +'"',
items:[
{tabs:[
{display:'',paths:['/rules/test_rules.jsp']}
]
}
],
buttons:[
]
},
'modeler.node': {
title:'Node Properties',
items:[
{tabs:[
{display:'General',jsx:'new ap.dialogs.NodeDesc("General",processNodeSynchronizer.dataSources.Node)'}
]
},
{'switch':[
{'case':'processNodeSynchronizer.dataSources.Node.ac1.localId=="core.1"', //End Node
items:[
{tabs:[
{display:'Setup',paths:['/process/designer/jsp/subprocess.jsp']},
{display:'Results',jsx:'new ap.dialogs.NodeEventsSetup("Results",processNodeSynchronizer.dataSources.Node,ap.beans.Event.EVENT_POSITION_END)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.localId=="core.0"', //Start Node
items:[
{tabs:[
{display:'Setup',paths:['/process/designer/jsp/subprocess.jsp']},
{display:'Triggers',jsx:'new ap.dialogs.NodeEventsSetup("Triggers",processNodeSynchronizer.dataSources.Node,ap.beans.Event.EVENT_POSITION_START)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.name==ap.Constants.ACTIVITY_CLASSES.OR', //Or Node
items:[
{tabs:[
{display:'Decision',jsx:'new ap.dialogs.LogicOr("Decision",processNodeSynchronizer.dataSources.Node)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.name==ap.Constants.ACTIVITY_CLASSES.XOR', //Xor Node
items:[
{tabs:[
{display:'Decision',jsx:'new ap.dialogs.LogicOr("Decision",processNodeSynchronizer.dataSources.Node,true)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.name==ap.Constants.ACTIVITY_CLASSES.COMPLEX', //Complex Node
items:[
{tabs:[
{display:'Decision',jsx:'new ap.dialogs.LogicComplex("Decision",processNodeSynchronizer.dataSources.Node,true)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.name==ap.Constants.ACTIVITY_CLASSES.AND', //And Node
items:[
{tabs:[
{display:'Decision',jsx:'new ap.dialogs.LogicAnd("Decision",processNodeSynchronizer.dataSources.Node)'}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.localId=="internal.38"', //subprocess node
items:[
{tabs:[
{display:'Setup',paths:['/process/designer/jsp/subprocess.jsp']}
]
}
]
},
{'case':'processNodeSynchronizer.dataSources.Node.ac1.type==3', //Smart Node
items:[
{tabs:[
{display:'Data',jsx:'new ap.dialogs.NodeAC("Data",processNodeSynchronizer.dataSources.Node)'},
{display:'Forms',jsx:'new ap.dialogs.Forms("Forms",processNodeSynchronizer.dataSources.Node)'},
{display:'Scheduling',jsx:'new ap.dialogs.NodeSch("Scheduling",processNodeSynchronizer.dataSources.Node)'},
{display:'Assignment',paths:['/process/designer/jsp/node_assignment.jsp?type=node']}
]
},
{'switch':[
{'case':'processNodeSynchronizer.dataSources.Node.ac1.name!="Unattended Multiple Questions"', //Not Script Task
items:[
{tabs:[
{display:'Escalations',jsx:'new ap.dialogs.NodeEsc("Escalations",processNodeSynchronizer.dataSources.Node)'}
]
}
]
}
]
},
{tabs:[
{display:'Exceptions',jsx:'new ap.dialogs.NodeEventsSetup("Escalations",processNodeSynchronizer.dataSources.Node,ap.beans.Event.EVENT_POSITION_EXCEPTION)'},
{display:'Attachments',jsx:'new ap.dialogs.Attachments("Escalations",processNodeSynchronizer.dataSources.Node)'},
{display:'Notes',jsx:'new ap.dialogs.Notes("Escalations",processNodeSynchronizer.dataSources.Node)'},
{display:'Other',paths:['/process/designer/jsp/multiple_instances.jsp','/process/designer/jsp/deadlines.jsp?type=task','/process/designer/jsp/task_execution.jsp']}
]
}
]
}
]
}
],
buttons:[
{display:'Update',onclick:'processNodeSynchronizer.locals.update();'},
{display:'Cancel',onclick:'processNodeSynchronizer.locals.cancel();',cancel:true}
]
}
};