cockpit/js/wfadaptor.cpee.js in cpee-1.3.140 vs cockpit/js/wfadaptor.cpee.js in cpee-1.3.141

- old
+ new

@@ -212,10 +212,33 @@ '<circle cx="28" cy="27" r="9" class="rfill stand"/>' + '<text transform="translate(28,31)" class="small">i</text>' + '</svg>'); } },//}}} + 'description' : {//{{{ + 'create': function(target) { + var node = null; + node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>'); + return node; + }, + 'permissible_children': function(node) { + if(node.children('manipulate').lenght < 1) + return [ + {'label': 'Script Block', + 'function_call': adaptor.description.insert_last_into, + 'menu_icon': elements.callmanipulate.illustrator.svg, + 'params': [adaptor.description.elements.manipulate.create, node]} + ]; + return []; + } + },//}}} + 'adaptor' : {//{{{ + 'mousedown': function (node, e) { + events.mousedown(node,e,true, true); + }, + 'click': events.click, + }//}}} }; /*}}}*/ this.elements.callcorrelation = { /*{{{*/ 'illustrator': {//{{{ 'type' : 'abstract', 'svg': function() { @@ -225,10 +248,33 @@ '<circle cx="28" cy="27" r="9" class="rfill stand"/>' + '<text transform="translate(28,31)" class="small">c</text>' + '</svg>'); } },//}}} + 'description' : {//{{{ + 'create': function(target) { + var node = null; + node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="correlation" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>'); + return node; + }, + 'permissible_children': function(node) { + if(node.children('manipulate').lenght < 1) + return [ + {'label': 'Script Block', + 'function_call': adaptor.description.insert_last_into, + 'menu_icon': elements.callmanipulate.illustrator.svg, + 'params': [adaptor.description.elements.manipulate.create, node]} + ]; + return []; + } + },//}}} + 'adaptor' : {//{{{ + 'mousedown': function (node, e) { + events.mousedown(node,e,true, true); + }, + 'click': events.click, + }//}}} }; /*}}}*/ this.elements.callinstantiation = { /*{{{*/ 'illustrator': {//{{{ 'type' : 'abstract', 'svg': function() { @@ -238,10 +284,33 @@ '<circle cx="28" cy="27" r="9" class="rfill stand"/>' + '<text transform="translate(28,32)" class="small">i</text>' + '</svg>'); } },//}}} + 'description' : {//{{{ + 'create': function(target) { + var node = null; + node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="instantiate" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>'); + return node; + }, + 'permissible_children': function(node) { + if(node.children('manipulate').lenght < 1) + return [ + {'label': 'Script Block', + 'function_call': adaptor.description.insert_last_into, + 'menu_icon': elements.callmanipulate.illustrator.svg, + 'params': [adaptor.description.elements.manipulate.create, node]} + ]; + return []; + } + },//}}} + 'adaptor' : {//{{{ + 'mousedown': function (node, e) { + events.mousedown(node,e,true, true); + }, + 'click': events.click, + }//}}} }; /*}}}*/ this.elements.callmanipulate = { /*{{{*/ 'illustrator': {//{{{ 'type' : 'abstract', 'svg': function() { @@ -251,9 +320,32 @@ '<circle cx="28" cy="27" r="9" class="rfill stand"/>' + '<text transform="translate(28,31)" class="small">s</text>' + '</svg>'); } },//}}} + 'description' : {//{{{ + 'create': function(target) { + var node = null; + node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>'); + return node; + }, + 'permissible_children': function(node) { + if(node.children('manipulate').lenght < 1) + return [ + {'label': 'Script Block', + 'function_call': adaptor.description.insert_last_into, + 'menu_icon': elements.callmanipulate.illustrator.svg, + 'params': [adaptor.description.elements.manipulate.create, node]} + ]; + return []; + } + },//}}} + 'adaptor' : {//{{{ + 'mousedown': function (node, e) { + events.mousedown(node,e,true, true); + }, + 'click': events.click, + }//}}} }; /*}}}*/ this.elements.choose_inclusive = { /*{{{*/ 'illustrator': {//{{{ 'type' : 'abstract', 'svg': function() {