Worked on adding items to Task Context and ProcessMap Context in ExtJS
This commit is contained in:
@@ -67,26 +67,31 @@ MyWorkflow.prototype.AddTaskContextMenu= function(oShape)
|
|||||||
this.contextTaskmenu = new Ext.menu.Menu({
|
this.contextTaskmenu = new Ext.menu.Menu({
|
||||||
items: [{
|
items: [{
|
||||||
text: 'Steps',
|
text: 'Steps',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_shape_move_forwards',
|
||||||
handler: taskExtObj.editTaskSteps,
|
handler: taskExtObj.editTaskSteps,
|
||||||
scope: oShape
|
scope: oShape
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Users & Users Group',
|
text: 'Users & Users Group',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_group',
|
||||||
handler: taskExtObj.editUsers,
|
handler: taskExtObj.editUsers,
|
||||||
scope: oShape
|
scope: oShape
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Users & Users Groups (ad-hoc)',
|
text: 'Users & Users Groups (ad-hoc)',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_group',
|
||||||
handler: taskExtObj.editUsersAdHoc,
|
handler: taskExtObj.editUsersAdHoc,
|
||||||
scope: oShape
|
scope: oShape
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Transform To',
|
text: 'Transform To',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_page_refresh',
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
items: [
|
items: [
|
||||||
// stick any markup in a menu
|
// stick any markup in a menu
|
||||||
{
|
{
|
||||||
text: 'Sub Process',
|
text: 'Sub Process',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_layout_link',
|
||||||
type:'bpmnSubProcess',
|
type:'bpmnSubProcess',
|
||||||
scope:oShape,
|
scope:oShape,
|
||||||
handler: MyWorkflow.prototype.toggleShapes
|
handler: MyWorkflow.prototype.toggleShapes
|
||||||
@@ -97,11 +102,13 @@ MyWorkflow.prototype.AddTaskContextMenu= function(oShape)
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Attach Event',
|
text: 'Attach Event',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_link',
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
items: [
|
items: [
|
||||||
// stick any markup in a menu
|
// stick any markup in a menu
|
||||||
{
|
{
|
||||||
text: 'Timer Boundary Event',
|
text: 'Timer Boundary Event',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_clock',
|
||||||
type:'bpmnEventBoundaryTimerInter',
|
type:'bpmnEventBoundaryTimerInter',
|
||||||
scope:oShape,
|
scope:oShape,
|
||||||
handler: MyWorkflow.prototype.toggleShapes
|
handler: MyWorkflow.prototype.toggleShapes
|
||||||
|
|||||||
@@ -145,29 +145,39 @@ Ext.onReady ( function() {
|
|||||||
menu: new Ext.menu.Menu({
|
menu: new Ext.menu.Menu({
|
||||||
items: [{
|
items: [{
|
||||||
text : 'Dynaform',
|
text : 'Dynaform',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_application_form',
|
||||||
handler : function() {
|
handler : function() {
|
||||||
processObj.addDynaform();
|
processObj.addDynaform();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Input Document',
|
text: 'Input Document',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',
|
||||||
handler : function() {
|
handler : function() {
|
||||||
processObj.addInputDoc();
|
processObj.addInputDoc();
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
text: 'Output Document',
|
text: 'Output Document',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_get',
|
||||||
|
|
||||||
handler : function() {
|
handler : function() {
|
||||||
processObj.addOutputDoc();
|
processObj.addOutputDoc();
|
||||||
}
|
}
|
||||||
},{text: 'Trigger'},
|
},{
|
||||||
|
text: 'Trigger',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_cog'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: 'Report Table',
|
text: 'Report Table',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_table',
|
||||||
handler : function() {
|
handler : function() {
|
||||||
processObj.addReportTable();
|
processObj.addReportTable();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Database Connection',handler : function() {
|
text: 'Database Connection',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_database_connect',
|
||||||
|
handler : function() {
|
||||||
processObj.dbConnection();
|
processObj.dbConnection();
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
@@ -222,19 +232,23 @@ Ext.onReady ( function() {
|
|||||||
items: [{
|
items: [{
|
||||||
text: 'Edit Process',
|
text: 'Edit Process',
|
||||||
handler: ProcessMapObj.editProcess,
|
handler: ProcessMapObj.editProcess,
|
||||||
icon: '/skins/ext/images/gray/shapes/more.gif',
|
//icon: '/skins/ext/images/gray/shapes/more.gif',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_edit',
|
||||||
scope: this
|
scope: this
|
||||||
}, {
|
}, {
|
||||||
text: 'Export Process',
|
text: 'Export Process',
|
||||||
handler: ProcessMapObj.exportProcess,
|
handler: ProcessMapObj.exportProcess,
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_script_go',
|
||||||
scope: this
|
scope: this
|
||||||
}, {
|
}, {
|
||||||
text: 'Add Task',
|
text: 'Add Task',
|
||||||
handler: ProcessMapObj.addTask,
|
handler: ProcessMapObj.addTask,
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_layout_add',
|
||||||
scope: this
|
scope: this
|
||||||
}, {
|
}, {
|
||||||
text: 'Add Subprocess',
|
text: 'Add Subprocess',
|
||||||
handler: workflow.subProcess,
|
handler: workflow.subProcess,
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_layout_link',
|
||||||
scope: this
|
scope: this
|
||||||
},/* {
|
},/* {
|
||||||
text: 'Horizontal Line',
|
text: 'Horizontal Line',
|
||||||
@@ -250,40 +264,48 @@ Ext.onReady ( function() {
|
|||||||
scope: this
|
scope: this
|
||||||
}, */{
|
}, */{
|
||||||
text: 'Process Permission',
|
text: 'Process Permission',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_application_key',
|
||||||
handler: ProcessMapObj.processPermission,
|
handler: ProcessMapObj.processPermission,
|
||||||
scope: this
|
scope: this
|
||||||
},{
|
},{
|
||||||
text: 'Process Supervisor',
|
text: 'Process Supervisor',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_group',
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
items: [
|
items: [
|
||||||
// stick any markup in a menu
|
// stick any markup in a menu
|
||||||
{
|
{
|
||||||
text: 'Supervisors',
|
text: 'Supervisors',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_group',
|
||||||
handler: ProcessMapObj.processSupervisors
|
handler: ProcessMapObj.processSupervisors
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'DynaForm',
|
text: 'DynaForm',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_application_form',
|
||||||
handler: ProcessMapObj.processDynaform
|
handler: ProcessMapObj.processDynaform
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Input Documents',
|
text: 'Input Documents',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',
|
||||||
handler: ProcessMapObj.processIODoc
|
handler: ProcessMapObj.processIODoc
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
text: 'Case Tracker',
|
text: 'Case Tracker',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_exclamation',
|
||||||
|
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
items: [
|
items: [
|
||||||
// stick any markup in a menu
|
// stick any markup in a menu
|
||||||
{
|
{
|
||||||
text: 'Properties',
|
text: 'Properties',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_exclamation',
|
||||||
handler: ProcessMapObj.caseTrackerProperties,
|
handler: ProcessMapObj.caseTrackerProperties,
|
||||||
scope:this
|
scope:this
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Objects',
|
text: 'Objects',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_exclamation',
|
||||||
handler: ProcessMapObj.caseTrackerObjects,
|
handler: ProcessMapObj.caseTrackerObjects,
|
||||||
scope:this
|
scope:this
|
||||||
},
|
},
|
||||||
@@ -296,15 +318,18 @@ Ext.onReady ( function() {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
text: 'Process File Manager',
|
text: 'Process File Manager',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_folder',
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
items: [
|
items: [
|
||||||
// stick any markup in a menu
|
// stick any markup in a menu
|
||||||
{
|
{
|
||||||
text: 'mailTemplates',
|
text: 'mailTemplates',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_email',
|
||||||
handler: ProcessMapObj.processFileManager
|
handler: ProcessMapObj.processFileManager
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'public',
|
text: 'public',
|
||||||
|
iconCls: 'button_menu_ext ss_sprite ss_folder_go',
|
||||||
handler: ProcessMapObj.processFileManager
|
handler: ProcessMapObj.processFileManager
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user