Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
BZ 994408 - jBPM engine does not support boundary event on Service Task
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihomir Surdilovic committed Nov 13, 2013
1 parent c2d9429 commit 63177f0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 6 deletions.

Large diffs are not rendered by default.

Expand Up @@ -352,7 +352,6 @@ ORYX.Plugins.DragDropResize = ORYX.Plugins.AbstractPlugin.extend({
this.containmentParentNode = this.facade.getCanvas();

} else {

/* Check the containment and connection rules */
var options = {
event : event,
Expand Down Expand Up @@ -456,7 +455,7 @@ ORYX.Plugins.DragDropResize = ORYX.Plugins.AbstractPlugin.extend({
if(this.containmentParentNode && this.containmentParentNode.properties['oryx-tasktype'] && this.containmentParentNode.properties['oryx-tasktype'] == "Script") {
this.isAttachingAllowed = false;
}

if ( this.isAttachingAllowed ) {
var point = this.facade.eventCoordinates(event);
this.isAttachingAllowed = this.containmentParentNode.isPointOverOffset( point.x, point.y );
Expand Down
Expand Up @@ -178,7 +178,7 @@ ORYX.Plugins.QueryResultHighlighter = ORYX.Plugins.AbstractPlugin.extend({

highlightSelectedTask: function(shape){ //edge marking of selected/ given task
if(!(shape instanceof ORYX.Core.Shape)) return;
this.facade.raiseEvent({
this.facade.raiseEvent({
type: ORYX.CONFIG.EVENT_HIGHLIGHT_SHOW,
highlightId: shape.id,
elements: [shape],
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -732,7 +732,7 @@ ORYX.Plugins.ShapeMenuPlugin = {

this._currentReference = canConnect ? candidate : undefined;

}
}

this.facade.raiseEvent({
type: ORYX.CONFIG.EVENT_HIGHLIGHT_SHOW,
Expand Down
Expand Up @@ -446,6 +446,9 @@ ORYX.Plugins.ShapeRepository = {
edgeStencil: stencil,
targetStencil: stencil
});
if(parentCandidate && parentCandidate.properties['oryx-tasktype'] && parentCandidate.properties['oryx-tasktype'] == "Script") {
this._canAttach = false;
}

if( this._canAttach ){
// Show Highlight
Expand Down
Expand Up @@ -9429,6 +9429,30 @@
"from":"Task",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"UserTask",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"SendTask",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"ReceiveTask",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"ManualTask",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"ServiceTask",
"to":["IntermediateEventOnActivityBoundary"]
},
{
"from":"Business RuleTask",
"to":["IntermediateEventOnActivityBoundary"]
},
$workitemDefs:{k|
$bopen$
"from":"$workitemDefs.(k).name$",
Expand Down

0 comments on commit 63177f0

Please sign in to comment.