Skip to content

Commit

Permalink
BZ 1078241 - jBPM Designer does not create custom tasks properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tihomir Surdilovic committed Mar 19, 2014
1 parent 1cf1910 commit d1c222f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,23 @@ ORYX.Plugins.ShapeRepository = {

var position = this.facade.eventCoordinates( event.browserEvent );
var typeParts = option.type.split("#");
var isCustom = false;
if(ORYX.PREPROCESSING) {
var customParts = ORYX.PREPROCESSING.split(",");
for (var i = 0; i < customParts.length; i++) {
if(customParts[i] == typeParts[1]) {
isCustom = true;
}
}
}
if(typeParts[1].startsWith("wp-")) {
this.facade.raiseEvent({
type: ORYX.CONFIG.CREATE_PATTERN,
pid: typeParts[1],
pdata: this._patternData,
pos: position
});
} else if(typeParts[1].endsWith("Task")) {
} else if(typeParts[1].endsWith("Task") && !isCustom) {
var ttype = typeParts[1];
ttype = ttype.substring(0, ttype.length - 4);
option.type = typeParts[0] + "#Task";
Expand Down

0 comments on commit d1c222f

Please sign in to comment.