cpee 2.1.97 → 2.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cockpit/css/wfadaptor.css +37 -33
- data/cockpit/js/details.js +9 -4
- data/cockpit/js/instance.js +2 -2
- data/cockpit/js/wfadaptor.js +11 -1
- data/cockpit/model.html +6 -1
- data/cockpit/themes/base.js +20 -19
- data/cockpit/themes/control/rngs/call.rng +2 -4
- data/cockpit/themes/control/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/control/rngs/manipulate.rng +2 -4
- data/cockpit/themes/control/rngs/start.rng +2 -4
- data/cockpit/themes/control/symbols/alternative.svg +2 -2
- data/cockpit/themes/control/symbols/call.svg +5 -5
- data/cockpit/themes/control/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/control/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/control/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/control/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/control/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/control/symbols/choose.svg +2 -2
- data/cockpit/themes/control/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/control/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/control/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/control/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/control/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/control/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/control/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/control/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/control/symbols/complex.svg +1 -1
- data/cockpit/themes/control/symbols/critical.svg +1 -1
- data/cockpit/themes/control/symbols/escape.svg +2 -2
- data/cockpit/themes/control/symbols/event_end.svg +1 -1
- data/cockpit/themes/control/symbols/loop.svg +2 -2
- data/cockpit/themes/control/symbols/loop_end.svg +2 -2
- data/cockpit/themes/control/symbols/manipulate.svg +5 -5
- data/cockpit/themes/control/symbols/otherwise.svg +1 -1
- data/cockpit/themes/control/symbols/parallel.svg +1 -1
- data/cockpit/themes/control/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/control/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/control/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/control/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/control/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/control/symbols/scripts.svg +1 -1
- data/cockpit/themes/control/symbols/start.svg +1 -1
- data/cockpit/themes/control/symbols/start_event.svg +1 -1
- data/cockpit/themes/control/symbols/stop.svg +1 -1
- data/cockpit/themes/control/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/dataflow/rngs/call.rng +2 -4
- data/cockpit/themes/dataflow/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/dataflow/rngs/manipulate.rng +2 -4
- data/cockpit/themes/dataflow/rngs/start.rng +2 -4
- data/cockpit/themes/dataflow/symbols/alternative.svg +2 -2
- data/cockpit/themes/dataflow/symbols/call.svg +5 -5
- data/cockpit/themes/dataflow/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/dataflow/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/dataflow/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/dataflow/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/dataflow/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/dataflow/symbols/choose.svg +2 -2
- data/cockpit/themes/dataflow/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/dataflow/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/dataflow/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/dataflow/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/dataflow/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/dataflow/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/dataflow/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/dataflow/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/dataflow/symbols/complex.svg +1 -1
- data/cockpit/themes/dataflow/symbols/critical.svg +1 -1
- data/cockpit/themes/dataflow/symbols/escape.svg +2 -2
- data/cockpit/themes/dataflow/symbols/event_end.svg +1 -1
- data/cockpit/themes/dataflow/symbols/loop.svg +2 -2
- data/cockpit/themes/dataflow/symbols/loop_end.svg +2 -2
- data/cockpit/themes/dataflow/symbols/manipulate.svg +5 -5
- data/cockpit/themes/dataflow/symbols/otherwise.svg +1 -1
- data/cockpit/themes/dataflow/symbols/parallel.svg +1 -1
- data/cockpit/themes/dataflow/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/dataflow/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/dataflow/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/dataflow/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/dataflow/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/dataflow/symbols/scripts.svg +1 -1
- data/cockpit/themes/dataflow/symbols/start.svg +1 -1
- data/cockpit/themes/dataflow/symbols/start_event.svg +1 -1
- data/cockpit/themes/dataflow/symbols/stop.svg +1 -1
- data/cockpit/themes/dataflow/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/default/rngs/call.rng +2 -4
- data/cockpit/themes/default/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/default/rngs/manipulate.rng +2 -4
- data/cockpit/themes/default/rngs/start.rng +2 -4
- data/cockpit/themes/default/symbols/alternative.svg +2 -2
- data/cockpit/themes/default/symbols/call.svg +5 -5
- data/cockpit/themes/default/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/default/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/default/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/default/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/default/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/default/symbols/choose.svg +2 -2
- data/cockpit/themes/default/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/default/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/default/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/default/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/default/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/default/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/default/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/default/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/default/symbols/complex.svg +1 -1
- data/cockpit/themes/default/symbols/critical.svg +1 -1
- data/cockpit/themes/default/symbols/escape.svg +2 -2
- data/cockpit/themes/default/symbols/event_end.svg +1 -1
- data/cockpit/themes/default/symbols/loop.svg +2 -2
- data/cockpit/themes/default/symbols/loop_end.svg +2 -2
- data/cockpit/themes/default/symbols/manipulate.svg +5 -5
- data/cockpit/themes/default/symbols/otherwise.svg +1 -1
- data/cockpit/themes/default/symbols/parallel.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/default/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/default/symbols/scripts.svg +1 -1
- data/cockpit/themes/default/symbols/start.svg +1 -1
- data/cockpit/themes/default/symbols/start_event.svg +1 -1
- data/cockpit/themes/default/symbols/stop.svg +1 -1
- data/cockpit/themes/default/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/extended/rngs/call.rng +2 -4
- data/cockpit/themes/extended/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/extended/rngs/manipulate.rng +2 -4
- data/cockpit/themes/extended/rngs/start.rng +2 -4
- data/cockpit/themes/extended/symbols/alternative.svg +2 -2
- data/cockpit/themes/extended/symbols/call.svg +5 -5
- data/cockpit/themes/extended/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/extended/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/extended/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/extended/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/extended/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/extended/symbols/choose.svg +2 -2
- data/cockpit/themes/extended/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/extended/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/extended/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/extended/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/extended/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/extended/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/extended/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/extended/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/extended/symbols/complex.svg +1 -1
- data/cockpit/themes/extended/symbols/critical.svg +1 -1
- data/cockpit/themes/extended/symbols/escape.svg +2 -2
- data/cockpit/themes/extended/symbols/event_end.svg +1 -1
- data/cockpit/themes/extended/symbols/loop.svg +2 -2
- data/cockpit/themes/extended/symbols/loop_end.svg +2 -2
- data/cockpit/themes/extended/symbols/manipulate.svg +5 -5
- data/cockpit/themes/extended/symbols/otherwise.svg +1 -1
- data/cockpit/themes/extended/symbols/parallel.svg +1 -1
- data/cockpit/themes/extended/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/extended/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/extended/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/extended/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/extended/symbols/scripts.svg +1 -1
- data/cockpit/themes/extended/symbols/start.svg +1 -1
- data/cockpit/themes/extended/symbols/start_event.svg +1 -1
- data/cockpit/themes/extended/symbols/stop.svg +1 -1
- data/cockpit/themes/extended/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/felix/symbols/alternative.svg +2 -2
- data/cockpit/themes/felix/symbols/call.svg +5 -5
- data/cockpit/themes/felix/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/felix/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/felix/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/felix/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/felix/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/felix/symbols/choose.svg +2 -2
- data/cockpit/themes/felix/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/felix/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/felix/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/felix/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/felix/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/felix/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/felix/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/felix/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/felix/symbols/complex.svg +1 -1
- data/cockpit/themes/felix/symbols/critical.svg +1 -1
- data/cockpit/themes/felix/symbols/escape.svg +2 -2
- data/cockpit/themes/felix/symbols/event_end.svg +1 -1
- data/cockpit/themes/felix/symbols/loop.svg +2 -2
- data/cockpit/themes/felix/symbols/loop_end.svg +2 -2
- data/cockpit/themes/felix/symbols/manipulate.svg +5 -5
- data/cockpit/themes/felix/symbols/otherwise.svg +1 -1
- data/cockpit/themes/felix/symbols/parallel.svg +1 -1
- data/cockpit/themes/felix/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/felix/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/felix/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/felix/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/felix/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/felix/symbols/scripts.svg +1 -1
- data/cockpit/themes/felix/symbols/start.svg +1 -1
- data/cockpit/themes/felix/symbols/start_event.svg +1 -1
- data/cockpit/themes/felix/symbols/stop.svg +1 -1
- data/cockpit/themes/felix/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/model/rngs/wait_for_signal.rng +1 -0
- data/cockpit/themes/model/symbols/alternative.svg +2 -2
- data/cockpit/themes/model/symbols/call.svg +5 -5
- data/cockpit/themes/model/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/model/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/model/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/model/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/model/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/model/symbols/choose.svg +2 -2
- data/cockpit/themes/model/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/model/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/model/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/model/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/model/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/model/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/model/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/model/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/model/symbols/complex.svg +1 -1
- data/cockpit/themes/model/symbols/critical.svg +1 -1
- data/cockpit/themes/model/symbols/escape.svg +2 -2
- data/cockpit/themes/model/symbols/event_end.svg +1 -1
- data/cockpit/themes/model/symbols/loop.svg +2 -2
- data/cockpit/themes/model/symbols/loop_end.svg +2 -2
- data/cockpit/themes/model/symbols/manipulate.svg +5 -5
- data/cockpit/themes/model/symbols/otherwise.svg +1 -1
- data/cockpit/themes/model/symbols/parallel.svg +1 -1
- data/cockpit/themes/model/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/model/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/model/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/model/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/model/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/model/symbols/scripts.svg +1 -1
- data/cockpit/themes/model/symbols/start.svg +1 -1
- data/cockpit/themes/model/symbols/start_event.svg +1 -1
- data/cockpit/themes/model/symbols/stop.svg +1 -1
- data/cockpit/themes/model/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/model/theme.js +444 -669
- data/cockpit/themes/packed/rngs/call.rng +2 -4
- data/cockpit/themes/packed/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/packed/rngs/manipulate.rng +2 -4
- data/cockpit/themes/packed/rngs/start.rng +2 -4
- data/cockpit/themes/packed/symbols/alternative.svg +2 -2
- data/cockpit/themes/packed/symbols/call.svg +5 -5
- data/cockpit/themes/packed/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/packed/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/packed/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/packed/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/packed/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/packed/symbols/choose.svg +2 -2
- data/cockpit/themes/packed/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/packed/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/packed/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/packed/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/packed/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/packed/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/packed/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/packed/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/packed/symbols/complex.svg +1 -1
- data/cockpit/themes/packed/symbols/critical.svg +1 -1
- data/cockpit/themes/packed/symbols/escape.svg +2 -2
- data/cockpit/themes/packed/symbols/event_end.svg +1 -1
- data/cockpit/themes/packed/symbols/loop.svg +2 -2
- data/cockpit/themes/packed/symbols/loop_end.svg +2 -2
- data/cockpit/themes/packed/symbols/manipulate.svg +5 -5
- data/cockpit/themes/packed/symbols/otherwise.svg +1 -1
- data/cockpit/themes/packed/symbols/parallel.svg +1 -1
- data/cockpit/themes/packed/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/packed/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/packed/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/packed/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/packed/symbols/scripts.svg +1 -1
- data/cockpit/themes/packed/symbols/start.svg +1 -1
- data/cockpit/themes/packed/symbols/start_event.svg +1 -1
- data/cockpit/themes/packed/symbols/stop.svg +1 -1
- data/cockpit/themes/packed/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/preset/rngs/call.rng +2 -4
- data/cockpit/themes/preset/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/preset/rngs/manipulate.rng +2 -4
- data/cockpit/themes/preset/rngs/start.rng +2 -4
- data/cockpit/themes/preset/symbols/alternative.svg +2 -2
- data/cockpit/themes/preset/symbols/call.svg +5 -5
- data/cockpit/themes/preset/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/preset/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/preset/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/preset/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/preset/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/preset/symbols/choose.svg +2 -2
- data/cockpit/themes/preset/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/preset/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/preset/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/preset/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/preset/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/preset/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/preset/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/preset/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/preset/symbols/complex.svg +1 -1
- data/cockpit/themes/preset/symbols/critical.svg +1 -1
- data/cockpit/themes/preset/symbols/escape.svg +2 -2
- data/cockpit/themes/preset/symbols/event_end.svg +1 -1
- data/cockpit/themes/preset/symbols/loop.svg +2 -2
- data/cockpit/themes/preset/symbols/loop_end.svg +2 -2
- data/cockpit/themes/preset/symbols/manipulate.svg +5 -5
- data/cockpit/themes/preset/symbols/otherwise.svg +1 -1
- data/cockpit/themes/preset/symbols/parallel.svg +1 -1
- data/cockpit/themes/preset/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/preset/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/preset/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/preset/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/preset/symbols/scripts.svg +1 -1
- data/cockpit/themes/preset/symbols/start.svg +1 -1
- data/cockpit/themes/preset/symbols/start_event.svg +1 -1
- data/cockpit/themes/preset/symbols/stop.svg +1 -1
- data/cockpit/themes/preset/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/presetaltid/rngs/call.rng +2 -4
- data/cockpit/themes/presetaltid/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/presetaltid/rngs/manipulate.rng +2 -4
- data/cockpit/themes/presetaltid/rngs/start.rng +2 -4
- data/cockpit/themes/presetaltid/symbols/alternative.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/call.svg +5 -5
- data/cockpit/themes/presetaltid/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/presetaltid/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/presetaltid/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/presetaltid/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/presetaltid/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/presetaltid/symbols/choose.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/complex.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/critical.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/escape.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/event_end.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/loop.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/loop_end.svg +2 -2
- data/cockpit/themes/presetaltid/symbols/manipulate.svg +5 -5
- data/cockpit/themes/presetaltid/symbols/otherwise.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/parallel.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/presetaltid/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/scripts.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/start.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/start_event.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/stop.svg +1 -1
- data/cockpit/themes/presetaltid/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/presetid/rngs/call.rng +2 -4
- data/cockpit/themes/presetid/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/presetid/rngs/manipulate.rng +2 -4
- data/cockpit/themes/presetid/rngs/start.rng +2 -4
- data/cockpit/themes/presetid/symbols/alternative.svg +2 -2
- data/cockpit/themes/presetid/symbols/call.svg +5 -5
- data/cockpit/themes/presetid/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/presetid/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/presetid/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/presetid/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/presetid/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/presetid/symbols/choose.svg +2 -2
- data/cockpit/themes/presetid/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/presetid/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/presetid/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/presetid/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/presetid/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/presetid/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/presetid/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/presetid/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/presetid/symbols/complex.svg +1 -1
- data/cockpit/themes/presetid/symbols/critical.svg +1 -1
- data/cockpit/themes/presetid/symbols/escape.svg +2 -2
- data/cockpit/themes/presetid/symbols/event_end.svg +1 -1
- data/cockpit/themes/presetid/symbols/loop.svg +2 -2
- data/cockpit/themes/presetid/symbols/loop_end.svg +2 -2
- data/cockpit/themes/presetid/symbols/manipulate.svg +5 -5
- data/cockpit/themes/presetid/symbols/otherwise.svg +1 -1
- data/cockpit/themes/presetid/symbols/parallel.svg +1 -1
- data/cockpit/themes/presetid/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/presetid/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/presetid/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/presetid/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/presetid/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/presetid/symbols/scripts.svg +1 -1
- data/cockpit/themes/presetid/symbols/start.svg +1 -1
- data/cockpit/themes/presetid/symbols/start_event.svg +1 -1
- data/cockpit/themes/presetid/symbols/stop.svg +1 -1
- data/cockpit/themes/presetid/symbols/wait_for_signal.svg +4 -4
- data/cockpit/themes/reduced/rngs/call.rng +2 -4
- data/cockpit/themes/reduced/rngs/callmanipulate.rng +2 -4
- data/cockpit/themes/reduced/rngs/manipulate.rng +2 -4
- data/cockpit/themes/reduced/rngs/start.rng +2 -4
- data/cockpit/themes/reduced/symbols/alternative.svg +2 -2
- data/cockpit/themes/reduced/symbols/call.svg +5 -5
- data/cockpit/themes/reduced/symbols/call_sensor.svg +7 -7
- data/cockpit/themes/reduced/symbols/callmanipulate.svg +6 -6
- data/cockpit/themes/reduced/symbols/callmanipulate_sensor.svg +8 -8
- data/cockpit/themes/reduced/symbols/callmanipulate_sensor_signal.svg +10 -10
- data/cockpit/themes/reduced/symbols/callmanipulate_signal.svg +8 -8
- data/cockpit/themes/reduced/symbols/choose.svg +2 -2
- data/cockpit/themes/reduced/symbols/choose_exclusive.svg +2 -2
- data/cockpit/themes/reduced/symbols/choose_exclusive_finish.svg +1 -1
- data/cockpit/themes/reduced/symbols/choose_inclusive.svg +2 -2
- data/cockpit/themes/reduced/symbols/choose_inclusive_finish.svg +1 -1
- data/cockpit/themes/reduced/symbols/closed_loop.svg +1 -1
- data/cockpit/themes/reduced/symbols/closed_loop_cancel.svg +2 -2
- data/cockpit/themes/reduced/symbols/closed_loop_control.svg +2 -2
- data/cockpit/themes/reduced/symbols/closed_loop_measuring.svg +2 -2
- data/cockpit/themes/reduced/symbols/complex.svg +1 -1
- data/cockpit/themes/reduced/symbols/critical.svg +1 -1
- data/cockpit/themes/reduced/symbols/escape.svg +2 -2
- data/cockpit/themes/reduced/symbols/event_end.svg +1 -1
- data/cockpit/themes/reduced/symbols/loop.svg +2 -2
- data/cockpit/themes/reduced/symbols/loop_end.svg +2 -2
- data/cockpit/themes/reduced/symbols/manipulate.svg +5 -5
- data/cockpit/themes/reduced/symbols/otherwise.svg +1 -1
- data/cockpit/themes/reduced/symbols/parallel.svg +1 -1
- data/cockpit/themes/reduced/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/reduced/symbols/parallel_branch_event.svg +4 -4
- data/cockpit/themes/reduced/symbols/parallel_branch_normal.svg +1 -1
- data/cockpit/themes/reduced/symbols/parallel_eventbased_exclusive.svg +1 -1
- data/cockpit/themes/reduced/symbols/parallel_eventbased_parallel.svg +1 -1
- data/cockpit/themes/reduced/symbols/scripts.svg +1 -1
- data/cockpit/themes/reduced/symbols/start.svg +1 -1
- data/cockpit/themes/reduced/symbols/start_event.svg +1 -1
- data/cockpit/themes/reduced/symbols/stop.svg +1 -1
- data/cockpit/themes/reduced/symbols/wait_for_signal.svg +4 -4
- data/cpee.gemspec +1 -1
- data/server/executionhandlers/eval/backend/{run → run.rb} +0 -2
- data/server/executionhandlers/eval/connection.rb +72 -42
- data/server/executionhandlers/eval/controller.rb +6 -0
- data/server/executionhandlers/eval/dsl_to_dslx.xsl +65 -42
- data/server/executionhandlers/eval/execution.rb +16 -15
- data/server/executionhandlers/ruby/connection.rb +1 -0
- metadata +3 -3
- data/cockpit/js_libs.zip +0 -0
|
@@ -2,8 +2,10 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
2
2
|
constructor(adaptor) {
|
|
3
3
|
super(adaptor);
|
|
4
4
|
var self = this;
|
|
5
|
+
this.compact = true;
|
|
6
|
+
this.rotated_labels = false;
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
this.contextMenuHandling = function(svgid,e,child,sibling) { //{{{
|
|
7
9
|
if (save['state'] != "ready" && save['state'] != "stopped") { return false; }
|
|
8
10
|
|
|
9
11
|
var xml_node = self.adaptor.description.get_node_by_svg_id(svgid);
|
|
@@ -14,13 +16,13 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
14
16
|
group = self.elements[xml_node.get(0).tagName].permissible_children(xml_node,'into');
|
|
15
17
|
if(group.length > 0) {
|
|
16
18
|
menu['Insert into'] = group;
|
|
17
|
-
copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
|
|
19
|
+
self.copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
|
|
18
20
|
}
|
|
19
21
|
if (self.elements[xml_node.get(0).tagName].permissible_children_expert) {
|
|
20
22
|
group = self.elements[xml_node.get(0).tagName].permissible_children_expert(xml_node,'into');
|
|
21
23
|
if(group.length > 0) {
|
|
22
24
|
menu['Insert into (Experts Only!)'] = group;
|
|
23
|
-
copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
|
|
25
|
+
self.copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -28,19 +30,19 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
28
30
|
group = self.elements[xml_node.parent().get(0).tagName].permissible_children(xml_node,'after');
|
|
29
31
|
if(group.length > 0) {
|
|
30
32
|
menu['Insert after'] = group;
|
|
31
|
-
copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
|
|
33
|
+
self.copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
|
|
32
34
|
}
|
|
33
35
|
if (self.elements[xml_node.parent().get(0).tagName].permissible_children_expert) {
|
|
34
36
|
group = self.elements[xml_node.parent().get(0).tagName].permissible_children_expert(xml_node,'after');
|
|
35
37
|
if(group.length > 0) {
|
|
36
38
|
menu['Insert after (Experts Only!)'] = group;
|
|
37
|
-
copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
|
|
39
|
+
self.copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
if(xml_node.get(0).tagName != 'description' && !self.elements[xml_node.get(0).tagName].neverdelete) {
|
|
43
|
-
var icon = contextMenuHandling_clean_icon(self.elements[xml_node.get(0).tagName].illustrator.svg);
|
|
45
|
+
var icon = self.contextMenuHandling_clean_icon(self.elements[xml_node.get(0).tagName].illustrator.svg);
|
|
44
46
|
icon.find('.rfill').addClass('menu');
|
|
45
47
|
icon.find('.hfill').addClass('menu');
|
|
46
48
|
menu['Delete'] = [{
|
|
@@ -58,7 +60,7 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
58
60
|
var nodes = localStorage.getItem('marked');
|
|
59
61
|
nodes = JSON.parse(nodes);
|
|
60
62
|
if (nodes && nodes.length > 0) {
|
|
61
|
-
var icond = contextMenuHandling_clean_icon(self.resources['delete']);
|
|
63
|
+
var icond = self.contextMenuHandling_clean_icon(self.resources['delete']);
|
|
62
64
|
icond.children('.standfat').addClass('menu');
|
|
63
65
|
menu['Delete'].push({
|
|
64
66
|
'label': 'Remove Marked Elements',
|
|
@@ -90,7 +92,7 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
if($('> code', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
|
|
93
|
-
var icon = contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg);
|
|
95
|
+
var icon = self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg);
|
|
94
96
|
icon.children('.rfill:last').addClass('menu');
|
|
95
97
|
menu['Delete'].push({
|
|
96
98
|
'label': 'Remove Output Transformation',
|
|
@@ -103,669 +105,442 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
103
105
|
new CustomMenu(e).contextmenu(menu);
|
|
104
106
|
} //}}}
|
|
105
107
|
|
|
106
|
-
this.elements.call = {
|
|
107
|
-
'
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
'
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if($('> code', node).length > 0) {
|
|
122
|
-
return 'callmanipulate';
|
|
123
|
-
} else {
|
|
124
|
-
return 'call';
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
'svg': self.adaptor.theme_dir + 'symbols/call.svg'
|
|
128
|
-
},//}}}
|
|
129
|
-
'description': self.adaptor.theme_dir + 'rngs/call.rng',
|
|
130
|
-
'permissible_children': function(node,mode) { //{{{
|
|
131
|
-
if(node.children('code').length < 1)
|
|
132
|
-
return [
|
|
133
|
-
{'label': 'Output Transformation',
|
|
134
|
-
'function_call': self.adaptor.description.insert_last_into,
|
|
135
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
136
|
-
'type': undefined,
|
|
137
|
-
'params': [self.adaptor.description.elements.scripts, node]}
|
|
138
|
-
];
|
|
139
|
-
return [];
|
|
140
|
-
}, //}}}
|
|
141
|
-
'adaptor': {//{{{
|
|
142
|
-
'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
|
|
143
|
-
'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
|
|
144
|
-
'touchend': self.events.touchend,
|
|
145
|
-
'click': self.events.click,
|
|
146
|
-
'dragstart': self.events.dragstart,
|
|
147
|
-
'mouseover': self.events.mouseover,
|
|
148
|
-
'mouseout': self.events.mouseout
|
|
149
|
-
}//}}}
|
|
150
|
-
}; /*}}}*/
|
|
151
|
-
this.elements.otherwise = { /*{{{*/
|
|
152
|
-
'type': 'complex',
|
|
153
|
-
'illustrator': {//{{{
|
|
154
|
-
'endnodes': 'passthrough',
|
|
155
|
-
'closeblock': false,
|
|
156
|
-
'noarrow': true,
|
|
157
|
-
'expansion': function(node) {
|
|
158
|
-
return 'vertical';
|
|
159
|
-
},
|
|
160
|
-
'col_shift': function(node) {
|
|
161
|
-
return false;
|
|
162
|
-
},
|
|
163
|
-
'svg': self.adaptor.theme_dir + 'symbols/otherwise.svg'
|
|
164
|
-
},//}}}
|
|
165
|
-
'description': self.adaptor.theme_dir + 'rngs/otherwise.rng',
|
|
166
|
-
'neverdelete': true,
|
|
167
|
-
'permissible_children': function(node,mode) { //{{{
|
|
168
|
-
var func = null;
|
|
169
|
-
var childs = null;
|
|
170
|
-
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
171
|
-
else { func = self.adaptor.description.insert_after }
|
|
172
|
-
var childs = [
|
|
173
|
-
{'label': 'Task with Output Transformation',
|
|
174
|
-
'function_call': func,
|
|
175
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
176
|
-
'type': 'callmanipulate',
|
|
177
|
-
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
178
|
-
{'label': 'Task',
|
|
179
|
-
'function_call': func,
|
|
180
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
181
|
-
'type': 'call',
|
|
182
|
-
'params': [self.adaptor.description.elements.call, node]},
|
|
183
|
-
{'label': 'Script',
|
|
184
|
-
'function_call': func,
|
|
185
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
186
|
-
'type': 'manipulate',
|
|
187
|
-
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
188
|
-
{'label': 'Parallel',
|
|
189
|
-
'function_call': func,
|
|
190
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
191
|
-
'type': 'parallel',
|
|
192
|
-
'params': [self.adaptor.description.elements.parallel, node]},
|
|
193
|
-
{'label': 'Decision',
|
|
194
|
-
'function_call': func,
|
|
195
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
196
|
-
'type': 'choose',
|
|
197
|
-
'params': [self.adaptor.description.elements.choose, node]},
|
|
198
|
-
{'label': 'Loop',
|
|
199
|
-
'function_call': func,
|
|
200
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
201
|
-
'type': 'loop',
|
|
202
|
-
'params': [self.adaptor.description.elements.loop, node]},
|
|
203
|
-
{'label': 'Terminate',
|
|
204
|
-
'function_call': func,
|
|
205
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
206
|
-
'type': 'terminate',
|
|
207
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
|
208
|
-
{'label': 'Stop',
|
|
209
|
-
'function_call': func,
|
|
210
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
211
|
-
'type': 'stop',
|
|
212
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
|
213
|
-
];
|
|
214
|
-
if(node.parent('parallel_branch').length > 0) {
|
|
215
|
-
childs.push({
|
|
216
|
-
'label': 'Critical',
|
|
217
|
-
'function_call': func,
|
|
218
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
219
|
-
'type': 'critical',
|
|
220
|
-
'params': [self.adaptor.description.elements.critical, node]
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
return childs;
|
|
224
|
-
}, //}}}
|
|
225
|
-
'adaptor': {//{{{
|
|
226
|
-
'mousedown': function (node,e) { self.events.mousedown(node,e,true,false); },
|
|
227
|
-
'touchstart': function (node,e) { self.events.touchstart(node,e,true,false); },
|
|
228
|
-
'touchend': self.events.touchend,
|
|
229
|
-
'click': self.events.click,
|
|
230
|
-
'dblclick': self.events.dblclick,
|
|
231
|
-
'mouseover': self.events.mouseover,
|
|
232
|
-
'mouseout': self.events.mouseout,
|
|
233
|
-
}//}}}
|
|
234
|
-
}; /*}}}*/
|
|
235
|
-
this.elements.alternative = { /*{{{*/
|
|
236
|
-
'type': 'complex',
|
|
237
|
-
'illustrator': {//{{{
|
|
238
|
-
'label': function(node){
|
|
239
|
-
var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
|
|
240
|
-
return ret;
|
|
241
|
-
},
|
|
242
|
-
'endnodes': 'passthrough',
|
|
243
|
-
'noarrow': true,
|
|
244
|
-
'closeblock':false,
|
|
245
|
-
'expansion': function(node) {
|
|
246
|
-
return 'vertical';
|
|
247
|
-
},
|
|
248
|
-
'col_shift': function(node) {
|
|
249
|
-
return false;
|
|
250
|
-
},
|
|
251
|
-
'svg': self.adaptor.theme_dir + 'symbols/alternative.svg'
|
|
252
|
-
},//}}}
|
|
253
|
-
'description': self.adaptor.theme_dir + 'rngs/alternative.rng',
|
|
254
|
-
'permissible_children': function(node,mode) { //{{{
|
|
255
|
-
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
256
|
-
else { func = self.adaptor.description.insert_after }
|
|
257
|
-
if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
|
|
258
|
-
return [{'label': 'Parallel Branch',
|
|
259
|
-
'function_call': func,
|
|
260
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
261
|
-
'type': 'parallel_branch',
|
|
262
|
-
'params': [self.adaptor.description.elements.parallel_branch, node]}];
|
|
263
|
-
}
|
|
264
|
-
var childs = [
|
|
265
|
-
{'label': 'Task with Output Transformation',
|
|
266
|
-
'function_call': func,
|
|
267
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
268
|
-
'type': 'callmanipulate',
|
|
269
|
-
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
270
|
-
{'label': 'Task',
|
|
271
|
-
'function_call': func,
|
|
272
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
273
|
-
'type': 'call',
|
|
274
|
-
'params': [self.adaptor.description.elements.call, node]},
|
|
275
|
-
{'label': 'Script',
|
|
276
|
-
'function_call': func,
|
|
277
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
278
|
-
'type': 'manipulate',
|
|
279
|
-
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
280
|
-
{'label': 'Parallel',
|
|
281
|
-
'function_call': func,
|
|
282
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
283
|
-
'type': 'parallel',
|
|
284
|
-
'params': [self.adaptor.description.elements.parallel, node]},
|
|
285
|
-
{'label': 'Decision',
|
|
286
|
-
'function_call': func,
|
|
287
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
288
|
-
'type': 'choose',
|
|
289
|
-
'params': [self.adaptor.description.elements.choose, node]},
|
|
290
|
-
{'label': 'Loop',
|
|
291
|
-
'function_call': func,
|
|
292
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
293
|
-
'type': 'loop',
|
|
294
|
-
'params': [self.adaptor.description.elements.loop, node]},
|
|
295
|
-
{'label': 'Terminate',
|
|
296
|
-
'function_call': func,
|
|
297
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
298
|
-
'type': 'terminate',
|
|
299
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
|
300
|
-
{'label': 'Stop',
|
|
301
|
-
'function_call': func,
|
|
302
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
303
|
-
'type': 'stop',
|
|
304
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
|
305
|
-
];
|
|
306
|
-
if(node.parent('parallel_branch').length > 0) {
|
|
307
|
-
childs.push({
|
|
308
|
-
'label': 'Critical',
|
|
309
|
-
'function_call': func,
|
|
310
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
311
|
-
'type': 'critical',
|
|
312
|
-
'params': [self.adaptor.description.elements.critical, node]
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
return childs;
|
|
316
|
-
}, //}}}
|
|
317
|
-
'adaptor': {//{{{
|
|
318
|
-
'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
|
|
319
|
-
'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
|
|
320
|
-
'touchend': self.events.touchend,
|
|
321
|
-
'click': self.events.click,
|
|
322
|
-
'dblclick': self.events.dblclick,
|
|
323
|
-
'mouseover': self.events.mouseover,
|
|
324
|
-
'mouseout': self.events.mouseout,
|
|
325
|
-
}//}}}
|
|
326
|
-
}; /*}}}*/
|
|
327
|
-
this.elements.loop = { /*{{{*/
|
|
328
|
-
'type': 'complex',
|
|
329
|
-
'illustrator': {//{{{
|
|
330
|
-
'resolve_symbol': function(node) {
|
|
331
|
-
if($(node).attr('mode') == 'pre_test') {
|
|
332
|
-
return 'loop_head';
|
|
333
|
-
} else {
|
|
334
|
-
return 'loop_tail';
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
'expansion': function(node) {
|
|
338
|
-
return 'vertical';
|
|
339
|
-
},
|
|
340
|
-
'col_shift': function(node) {
|
|
341
|
-
return true;
|
|
342
|
-
},
|
|
343
|
-
'svg': self.adaptor.theme_dir + 'symbols/loop.svg'
|
|
344
|
-
},// }}}
|
|
345
|
-
'description': self.adaptor.theme_dir + 'rngs/loop.rng',
|
|
346
|
-
'permissible_children': function(node,mode) { //{{{
|
|
347
|
-
var func = null;
|
|
348
|
-
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
349
|
-
else { func = self.adaptor.description.insert_after }
|
|
350
|
-
var childs = [
|
|
351
|
-
{'label': 'Task with Output Transformation',
|
|
352
|
-
'function_call': func,
|
|
353
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
354
|
-
'type': 'callmanipulate',
|
|
355
|
-
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
356
|
-
{'label': 'Task',
|
|
357
|
-
'function_call': func,
|
|
358
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
359
|
-
'type': 'call',
|
|
360
|
-
'params': [self.adaptor.description.elements.call, node]},
|
|
361
|
-
{'label': 'Script',
|
|
362
|
-
'function_call': func,
|
|
363
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
364
|
-
'type': 'manipulate',
|
|
365
|
-
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
366
|
-
{'label': 'Decision',
|
|
367
|
-
'function_call': func,
|
|
368
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
369
|
-
'type': 'choose',
|
|
370
|
-
'params': [self.adaptor.description.elements.choose, node]},
|
|
371
|
-
{'label': 'Loop',
|
|
372
|
-
'function_call': func,
|
|
373
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
374
|
-
'type': 'loop',
|
|
375
|
-
'params': [self.adaptor.description.elements.loop, node]},
|
|
376
|
-
{'label': 'Terminate',
|
|
377
|
-
'function_call': func,
|
|
378
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
379
|
-
'type': 'terminate',
|
|
380
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
|
381
|
-
{'label': 'Stop',
|
|
382
|
-
'function_call': func,
|
|
383
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
384
|
-
'type': 'stop',
|
|
385
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
|
386
|
-
];
|
|
387
|
-
if(node.parent('parallel_branch').length > 0) {
|
|
388
|
-
childs.push({
|
|
389
|
-
'label': 'Critical',
|
|
390
|
-
'function_call': func,
|
|
391
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
392
|
-
'type': 'critical',
|
|
393
|
-
'params': [self.adaptor.description.elements.critical, node]
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
if(node.parent('parallel').length > node.parent('parallel_branch').length) {
|
|
397
|
-
childs.push({'label': 'Parallel Branch',
|
|
398
|
-
'function_call': func,
|
|
399
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
400
|
-
'type': 'parallel_branch',
|
|
401
|
-
'params': [self.adaptor.description.elements.parallel_branch, node]}
|
|
402
|
-
);
|
|
403
|
-
} else {
|
|
404
|
-
childs.push({'label': 'Parallel',
|
|
405
|
-
'function_call': func,
|
|
406
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
407
|
-
'type': 'parallel',
|
|
408
|
-
'params': [self.adaptor.description.elements.parallel, node]}
|
|
409
|
-
);
|
|
410
|
-
}
|
|
411
|
-
return childs;
|
|
412
|
-
}, //}}}
|
|
413
|
-
'adaptor': {//{{{
|
|
414
|
-
'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
|
|
415
|
-
'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
|
|
416
|
-
'touchend': self.events.touchend,
|
|
417
|
-
'click': self.events.click,
|
|
418
|
-
'dblclick': self.events.dblclick,
|
|
419
|
-
'mouseover': self.events.mouseover,
|
|
420
|
-
'mouseout': self.events.mouseout,
|
|
421
|
-
}//}}}
|
|
422
|
-
}; /*}}}*/
|
|
423
|
-
this.elements.parallel = { /*{{{*/
|
|
424
|
-
'type': 'complex',
|
|
425
|
-
'illustrator': {//{{{
|
|
426
|
-
'endnodes': 'aggregate',
|
|
427
|
-
'closeblock': false,
|
|
428
|
-
'closing_symbol': 'parallel_finish',
|
|
429
|
-
'expansion': function(node) {
|
|
430
|
-
// check if any sibling other than 'parallel_branch' is present
|
|
431
|
-
if($(node).children(':not(parallel_branch)').length > 0) return 'vertical';
|
|
432
|
-
return 'horizontal';
|
|
433
|
-
},
|
|
434
|
-
'col_shift': function(node) {
|
|
435
|
-
return true;
|
|
436
|
-
},
|
|
437
|
-
'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
|
|
438
|
-
'resolve_symbol': function(node) {
|
|
439
|
-
if($(node).attr('cancel') == 'last') {
|
|
440
|
-
return 'parallel_start';
|
|
441
|
-
} else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == 1) {
|
|
442
|
-
return 'parallel_eventbased_exclusive';
|
|
443
|
-
} else {
|
|
444
|
-
return 'parallel_eventbased_parallel';
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
},//}}}
|
|
448
|
-
'description': self.adaptor.theme_dir + 'rngs/parallel.rng',
|
|
449
|
-
'permissible_children': function(node,mode) { //{{{
|
|
450
|
-
var func = null;
|
|
451
|
-
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
452
|
-
else { func = self.adaptor.description.insert_after }
|
|
453
|
-
var childs = [
|
|
454
|
-
{'label': 'Parallel Branch',
|
|
455
|
-
'function_call': func,
|
|
456
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
457
|
-
'type': 'parallel_branch',
|
|
458
|
-
'params': [self.adaptor.description.elements.parallel_branch, node]},
|
|
459
|
-
];
|
|
460
|
-
return childs;
|
|
461
|
-
}, //}}}
|
|
462
|
-
'permissible_children_expert': function(node,mode) { //{{{
|
|
463
|
-
var func = null;
|
|
464
|
-
if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
|
|
465
|
-
else { func = self.adaptor.description.insert_after }
|
|
466
|
-
var childs = [
|
|
467
|
-
{'label': 'Task with Output Transformation',
|
|
468
|
-
'function_call': func,
|
|
469
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
470
|
-
'type': 'callmanipulate',
|
|
471
|
-
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
472
|
-
{'label': 'Task',
|
|
473
|
-
'function_call': func,
|
|
474
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
475
|
-
'type': 'call',
|
|
476
|
-
'params': [self.adaptor.description.elements.call, node]},
|
|
477
|
-
{'label': 'Script',
|
|
478
|
-
'function_call': func,
|
|
479
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
480
|
-
'type': 'manipulate',
|
|
481
|
-
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
482
|
-
{'label': 'Decision',
|
|
483
|
-
'function_call': func,
|
|
484
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
485
|
-
'type': 'choose',
|
|
486
|
-
'params': [self.adaptor.description.elements.choose, node]},
|
|
487
|
-
{'label': 'Loop',
|
|
488
|
-
'function_call': func,
|
|
489
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
490
|
-
'type': 'loop',
|
|
491
|
-
'params': [self.adaptor.description.elements.loop, node]},
|
|
492
|
-
{'label': 'Stop',
|
|
493
|
-
'function_call': func,
|
|
494
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
495
|
-
'type': 'stop',
|
|
496
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
|
108
|
+
this.elements.call.illustrator.resolve_symbol = function(node) { //{{{
|
|
109
|
+
if($('> code', node).length > 0) {
|
|
110
|
+
return 'callmanipulate';
|
|
111
|
+
} else {
|
|
112
|
+
return 'call';
|
|
113
|
+
}
|
|
114
|
+
} //}}}
|
|
115
|
+
this.elements.call.permissible_children = function(node,mode) { //{{{
|
|
116
|
+
if(node.children('code').length < 1)
|
|
117
|
+
return [
|
|
118
|
+
{'label': 'Output Transformation',
|
|
119
|
+
'function_call': self.adaptor.description.insert_last_into,
|
|
120
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
121
|
+
'type': undefined,
|
|
122
|
+
'params': [self.adaptor.description.elements.scripts, node]}
|
|
497
123
|
];
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
'
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
'
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
'
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
'
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
'
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
'function_call': func,
|
|
552
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.
|
|
553
|
-
'type': 'call',
|
|
554
|
-
'params': [self.adaptor.description.elements.call, node]},
|
|
555
|
-
{'label': 'Script',
|
|
556
|
-
'function_call': func,
|
|
557
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
558
|
-
'type': 'manipulate',
|
|
559
|
-
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
560
|
-
{'label': 'Parallel',
|
|
561
|
-
'function_call': func,
|
|
562
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
563
|
-
'type': 'parallel',
|
|
564
|
-
'params': [self.adaptor.description.elements.parallel, node]},
|
|
565
|
-
{'label': 'Decision',
|
|
566
|
-
'function_call': func,
|
|
567
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
568
|
-
'type': 'choose',
|
|
569
|
-
'params': [self.adaptor.description.elements.choose, node]},
|
|
570
|
-
{'label': 'Loop',
|
|
571
|
-
'function_call': func,
|
|
572
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
573
|
-
'type': 'loop',
|
|
574
|
-
'params': [self.adaptor.description.elements.loop, node]},
|
|
575
|
-
{'label': 'Terminate',
|
|
576
|
-
'function_call': func,
|
|
577
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
578
|
-
'type': 'terminate',
|
|
579
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
|
580
|
-
{'label': 'Stop',
|
|
581
|
-
'function_call': func,
|
|
582
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
583
|
-
'type': 'stop',
|
|
584
|
-
'params': [self.adaptor.description.elements.stop, node]},
|
|
585
|
-
{'label': 'Critical',
|
|
586
|
-
'function_call': func,
|
|
587
|
-
'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
124
|
+
return [];
|
|
125
|
+
} //}}}
|
|
126
|
+
|
|
127
|
+
this.elements.otherwise.permissible_children = function(node,mode) { //{{{
|
|
128
|
+
var func = null;
|
|
129
|
+
var childs = null;
|
|
130
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
131
|
+
else { func = self.adaptor.description.insert_after }
|
|
132
|
+
var childs = [
|
|
133
|
+
{'label': 'Task with Output Transformation',
|
|
134
|
+
'function_call': func,
|
|
135
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
136
|
+
'type': 'callmanipulate',
|
|
137
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
138
|
+
{'label': 'Task',
|
|
139
|
+
'function_call': func,
|
|
140
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
141
|
+
'type': 'call',
|
|
142
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
143
|
+
{'label': 'Script',
|
|
144
|
+
'function_call': func,
|
|
145
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
146
|
+
'type': 'manipulate',
|
|
147
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
148
|
+
{'label': 'Parallel',
|
|
149
|
+
'function_call': func,
|
|
150
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
151
|
+
'type': 'parallel',
|
|
152
|
+
'params': [self.adaptor.description.elements.parallel, node]},
|
|
153
|
+
{'label': 'Decision',
|
|
154
|
+
'function_call': func,
|
|
155
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
156
|
+
'type': 'choose',
|
|
157
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
158
|
+
{'label': 'Loop',
|
|
159
|
+
'function_call': func,
|
|
160
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
161
|
+
'type': 'loop',
|
|
162
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
163
|
+
{'label': 'Terminate',
|
|
164
|
+
'function_call': func,
|
|
165
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
166
|
+
'type': 'terminate',
|
|
167
|
+
'params': [self.adaptor.description.elements.terminate, node]},
|
|
168
|
+
{'label': 'Stop',
|
|
169
|
+
'function_call': func,
|
|
170
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
171
|
+
'type': 'stop',
|
|
172
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
173
|
+
];
|
|
174
|
+
if(node.parent('parallel_branch').length > 0) {
|
|
175
|
+
childs.push({
|
|
176
|
+
'label': 'Critical',
|
|
177
|
+
'function_call': func,
|
|
178
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
588
179
|
'type': 'critical',
|
|
589
|
-
'params': [self.adaptor.description.elements.critical, node]
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
return
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
'
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
'
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
'
|
|
649
|
-
'
|
|
650
|
-
|
|
651
|
-
'
|
|
652
|
-
'
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
'
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
707
|
-
'
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
180
|
+
'params': [self.adaptor.description.elements.critical, node]
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
return childs;
|
|
184
|
+
}; //}}}
|
|
185
|
+
this.elements.alternative.permissible_children = function(node,mode) { //{{{
|
|
186
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
187
|
+
else { func = self.adaptor.description.insert_after }
|
|
188
|
+
if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
|
|
189
|
+
return [{'label': 'Parallel Branch',
|
|
190
|
+
'function_call': func,
|
|
191
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
192
|
+
'type': 'parallel_branch',
|
|
193
|
+
'params': [self.adaptor.description.elements.parallel_branch, node]}];
|
|
194
|
+
}
|
|
195
|
+
var childs = [
|
|
196
|
+
{'label': 'Task with Output Transformation',
|
|
197
|
+
'function_call': func,
|
|
198
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
199
|
+
'type': 'callmanipulate',
|
|
200
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
201
|
+
{'label': 'Task',
|
|
202
|
+
'function_call': func,
|
|
203
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
204
|
+
'type': 'call',
|
|
205
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
206
|
+
{'label': 'Script',
|
|
207
|
+
'function_call': func,
|
|
208
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
209
|
+
'type': 'manipulate',
|
|
210
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
211
|
+
{'label': 'Parallel',
|
|
212
|
+
'function_call': func,
|
|
213
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
214
|
+
'type': 'parallel',
|
|
215
|
+
'params': [self.adaptor.description.elements.parallel, node]},
|
|
216
|
+
{'label': 'Decision',
|
|
217
|
+
'function_call': func,
|
|
218
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
219
|
+
'type': 'choose',
|
|
220
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
221
|
+
{'label': 'Loop',
|
|
222
|
+
'function_call': func,
|
|
223
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
224
|
+
'type': 'loop',
|
|
225
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
226
|
+
{'label': 'Terminate',
|
|
227
|
+
'function_call': func,
|
|
228
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
229
|
+
'type': 'terminate',
|
|
230
|
+
'params': [self.adaptor.description.elements.terminate, node]},
|
|
231
|
+
{'label': 'Stop',
|
|
232
|
+
'function_call': func,
|
|
233
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
234
|
+
'type': 'stop',
|
|
235
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
236
|
+
];
|
|
237
|
+
if(node.parent('parallel_branch').length > 0) {
|
|
238
|
+
childs.push({
|
|
239
|
+
'label': 'Critical',
|
|
240
|
+
'function_call': func,
|
|
241
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
242
|
+
'type': 'critical',
|
|
243
|
+
'params': [self.adaptor.description.elements.critical, node]
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
return childs;
|
|
247
|
+
}; //}}}
|
|
248
|
+
this.elements.loop.permissible_children = function(node,mode) { //{{{
|
|
249
|
+
var func = null;
|
|
250
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
251
|
+
else { func = self.adaptor.description.insert_after }
|
|
252
|
+
var childs = [
|
|
253
|
+
{'label': 'Task with Output Transformation',
|
|
254
|
+
'function_call': func,
|
|
255
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
256
|
+
'type': 'callmanipulate',
|
|
257
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
258
|
+
{'label': 'Task',
|
|
259
|
+
'function_call': func,
|
|
260
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
261
|
+
'type': 'call',
|
|
262
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
263
|
+
{'label': 'Script',
|
|
264
|
+
'function_call': func,
|
|
265
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
266
|
+
'type': 'manipulate',
|
|
267
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
268
|
+
{'label': 'Decision',
|
|
269
|
+
'function_call': func,
|
|
270
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
271
|
+
'type': 'choose',
|
|
272
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
273
|
+
{'label': 'Loop',
|
|
274
|
+
'function_call': func,
|
|
275
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
276
|
+
'type': 'loop',
|
|
277
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
278
|
+
{'label': 'Terminate',
|
|
279
|
+
'function_call': func,
|
|
280
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
281
|
+
'type': 'terminate',
|
|
282
|
+
'params': [self.adaptor.description.elements.terminate, node]},
|
|
283
|
+
{'label': 'Stop',
|
|
284
|
+
'function_call': func,
|
|
285
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
286
|
+
'type': 'stop',
|
|
287
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
288
|
+
];
|
|
289
|
+
if(node.parent('parallel_branch').length > 0) {
|
|
290
|
+
childs.push({
|
|
291
|
+
'label': 'Critical',
|
|
292
|
+
'function_call': func,
|
|
293
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
294
|
+
'type': 'critical',
|
|
295
|
+
'params': [self.adaptor.description.elements.critical, node]
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
if(node.parent('parallel').length > node.parent('parallel_branch').length) {
|
|
299
|
+
childs.push({'label': 'Parallel Branch',
|
|
300
|
+
'function_call': func,
|
|
301
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
302
|
+
'type': 'parallel_branch',
|
|
303
|
+
'params': [self.adaptor.description.elements.parallel_branch, node]}
|
|
304
|
+
);
|
|
305
|
+
} else {
|
|
306
|
+
childs.push({'label': 'Parallel',
|
|
307
|
+
'function_call': func,
|
|
308
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
309
|
+
'type': 'parallel',
|
|
310
|
+
'params': [self.adaptor.description.elements.parallel, node]}
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
return childs;
|
|
314
|
+
}; //}}}
|
|
315
|
+
this.elements.parallel.permissible_children = function(node,mode) { //{{{
|
|
316
|
+
var func = null;
|
|
317
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
318
|
+
else { func = self.adaptor.description.insert_after }
|
|
319
|
+
var childs = [
|
|
320
|
+
{'label': 'Parallel Branch',
|
|
321
|
+
'function_call': func,
|
|
322
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
|
|
323
|
+
'type': 'parallel_branch',
|
|
324
|
+
'params': [self.adaptor.description.elements.parallel_branch, node]},
|
|
325
|
+
];
|
|
326
|
+
return childs;
|
|
327
|
+
}; // }}}
|
|
328
|
+
this.elements.parallel.permissible_children_expert = function(node,mode) { //{{{
|
|
329
|
+
var func = null;
|
|
330
|
+
if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
|
|
331
|
+
else { func = self.adaptor.description.insert_after }
|
|
332
|
+
var childs = [
|
|
333
|
+
{'label': 'Task with Output Transformation',
|
|
334
|
+
'function_call': func,
|
|
335
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
336
|
+
'type': 'callmanipulate',
|
|
337
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
338
|
+
{'label': 'Task',
|
|
339
|
+
'function_call': func,
|
|
340
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
341
|
+
'type': 'call',
|
|
342
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
343
|
+
{'label': 'Script',
|
|
344
|
+
'function_call': func,
|
|
345
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
346
|
+
'type': 'manipulate',
|
|
347
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
348
|
+
{'label': 'Decision',
|
|
349
|
+
'function_call': func,
|
|
350
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
351
|
+
'type': 'choose',
|
|
352
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
353
|
+
{'label': 'Loop',
|
|
354
|
+
'function_call': func,
|
|
355
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
356
|
+
'type': 'loop',
|
|
357
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
358
|
+
{'label': 'Stop',
|
|
359
|
+
'function_call': func,
|
|
360
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
361
|
+
'type': 'stop',
|
|
362
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
363
|
+
];
|
|
364
|
+
if(node.get(0).tagName != 'parallel')
|
|
365
|
+
childs.push({'label': 'Parallel',
|
|
366
|
+
'function_call': self.adaptor.description.insert_last_into,
|
|
367
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
731
368
|
'type': 'parallel',
|
|
732
|
-
'params': [self.adaptor.description.elements.parallel, node]}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
'
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
'
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
369
|
+
'params': [self.adaptor.description.elements.parallel, node]});
|
|
370
|
+
return childs;
|
|
371
|
+
}; //}}}
|
|
372
|
+
|
|
373
|
+
this.elements.parallel_branch.permissible_children = function(node,mode) { //{{{
|
|
374
|
+
var func = null;
|
|
375
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
376
|
+
else { func = self.adaptor.description.insert_after }
|
|
377
|
+
var childs = [
|
|
378
|
+
{'label': 'Task with Output Transformation',
|
|
379
|
+
'function_call': func,
|
|
380
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
381
|
+
'type': 'callmanipulate',
|
|
382
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
383
|
+
{'label': 'Task',
|
|
384
|
+
'function_call': func,
|
|
385
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
386
|
+
'type': 'call',
|
|
387
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
388
|
+
{'label': 'Script',
|
|
389
|
+
'function_call': func,
|
|
390
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
391
|
+
'type': 'manipulate',
|
|
392
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
393
|
+
{'label': 'Parallel',
|
|
394
|
+
'function_call': func,
|
|
395
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
396
|
+
'type': 'parallel',
|
|
397
|
+
'params': [self.adaptor.description.elements.parallel, node]},
|
|
398
|
+
{'label': 'Decision',
|
|
399
|
+
'function_call': func,
|
|
400
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
401
|
+
'type': 'choose',
|
|
402
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
403
|
+
{'label': 'Loop',
|
|
404
|
+
'function_call': func,
|
|
405
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
406
|
+
'type': 'loop',
|
|
407
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
408
|
+
{'label': 'Terminate',
|
|
409
|
+
'function_call': func,
|
|
410
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
411
|
+
'type': 'terminate',
|
|
412
|
+
'params': [self.adaptor.description.elements.terminate, node]},
|
|
413
|
+
{'label': 'Stop',
|
|
414
|
+
'function_call': func,
|
|
415
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
416
|
+
'type': 'stop',
|
|
417
|
+
'params': [self.adaptor.description.elements.stop, node]},
|
|
418
|
+
{'label': 'Critical',
|
|
419
|
+
'function_call': func,
|
|
420
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
421
|
+
'type': 'critical',
|
|
422
|
+
'params': [self.adaptor.description.elements.critical, node]}
|
|
423
|
+
];
|
|
424
|
+
if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
|
|
425
|
+
return [{'label': 'Alternative',
|
|
426
|
+
'function_call': func,
|
|
427
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.alternative.illustrator.svg),
|
|
428
|
+
'type': 'alternative',
|
|
429
|
+
'params': [self.adaptor.description.elements.alternative, node]}];
|
|
430
|
+
}
|
|
431
|
+
return childs;
|
|
432
|
+
}; //}}}
|
|
433
|
+
this.elements.critical.permissible_children = function(node,mode) { //{{{
|
|
434
|
+
var func = null;
|
|
435
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
436
|
+
else { func = self.adaptor.description.insert_after }
|
|
437
|
+
var childs = [
|
|
438
|
+
{'label': 'Task with Output Transformation',
|
|
439
|
+
'function_call': func,
|
|
440
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
441
|
+
'type': 'callmanipulate',
|
|
442
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
443
|
+
{'label': 'Task',
|
|
444
|
+
'function_call': func,
|
|
445
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
446
|
+
'type': 'call',
|
|
447
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
448
|
+
{'label': 'Script',
|
|
449
|
+
'function_call': func,
|
|
450
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
451
|
+
'type': 'manipulate',
|
|
452
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
453
|
+
{'label': 'Parallel',
|
|
454
|
+
'function_call': func,
|
|
455
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
456
|
+
'type': 'parallel',
|
|
457
|
+
'params': [self.adaptor.description.elements.parallel, node]},
|
|
458
|
+
{'label': 'Decision',
|
|
459
|
+
'function_call': func,
|
|
460
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
461
|
+
'type': 'choose',
|
|
462
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
463
|
+
{'label': 'Loop',
|
|
464
|
+
'function_call': func,
|
|
465
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
466
|
+
'type': 'loop',
|
|
467
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
468
|
+
{'label': 'Terminate',
|
|
469
|
+
'function_call': func,
|
|
470
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
|
|
471
|
+
'type': 'terminate',
|
|
472
|
+
'params': [self.adaptor.description.elements.terminate, node]},
|
|
473
|
+
{'label': 'Stop',
|
|
474
|
+
'function_call': func,
|
|
475
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
476
|
+
'type': 'stop',
|
|
477
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
478
|
+
];
|
|
479
|
+
if(node.parent('parallel_branch').length > 0) {
|
|
480
|
+
childs.push({
|
|
481
|
+
'label': 'Critical',
|
|
482
|
+
'function_call': func,
|
|
483
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
484
|
+
'type': 'critical',
|
|
485
|
+
'params': [self.adaptor.description.elements.critical, node]
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
return childs;
|
|
489
|
+
}; //}}}
|
|
490
|
+
|
|
491
|
+
this.elements.start.illustrator.resolve_symbol = null;
|
|
492
|
+
this.elements.start.description = null;
|
|
493
|
+
this.elements.start.permissible_children = this.elements.description.permissible_children = function(node,mode) { //{{{
|
|
494
|
+
var func = null;
|
|
495
|
+
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
|
496
|
+
else { func = self.adaptor.description.insert_after }
|
|
497
|
+
var childs = [
|
|
498
|
+
{'label': 'Task with Output Transformation',
|
|
499
|
+
'function_call': func,
|
|
500
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
|
|
501
|
+
'type': 'callmanipulate',
|
|
502
|
+
'params': [self.adaptor.description.elements.callmanipulate, node]},
|
|
503
|
+
{'label': 'Task',
|
|
504
|
+
'function_call': func,
|
|
505
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
|
|
506
|
+
'type': 'call',
|
|
507
|
+
'params': [self.adaptor.description.elements.call, node]},
|
|
508
|
+
{'label': 'Script',
|
|
509
|
+
'function_call': func,
|
|
510
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
|
|
511
|
+
'type': 'manipulate',
|
|
512
|
+
'params': [self.adaptor.description.elements.manipulate, node]},
|
|
513
|
+
{'label': 'Parallel',
|
|
514
|
+
'function_call': func,
|
|
515
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
|
|
516
|
+
'type': 'parallel',
|
|
517
|
+
'params': [self.adaptor.description.elements.parallel, node]},
|
|
518
|
+
{'label': 'Decision',
|
|
519
|
+
'function_call': func,
|
|
520
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
|
|
521
|
+
'type': 'choose',
|
|
522
|
+
'params': [self.adaptor.description.elements.choose, node]},
|
|
523
|
+
{'label': 'Loop',
|
|
524
|
+
'function_call': func,
|
|
525
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
|
|
526
|
+
'type': 'loop',
|
|
527
|
+
'params': [self.adaptor.description.elements.loop, node]},
|
|
528
|
+
{'label': 'Stop',
|
|
529
|
+
'function_call': func,
|
|
530
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
|
|
531
|
+
'type': 'stop',
|
|
532
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
|
533
|
+
];
|
|
534
|
+
if(node.parent('parallel_branch').length > 0) {
|
|
535
|
+
childs.push({
|
|
536
|
+
'label': 'Critical',
|
|
537
|
+
'function_call': func,
|
|
538
|
+
'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
|
|
539
|
+
'type': 'critical',
|
|
540
|
+
'params': [self.adaptor.description.elements.critical, node]
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
return childs;
|
|
544
|
+
}; //}}}
|
|
770
545
|
}
|
|
771
546
|
}
|