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

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 eaaad3c commit e4d061a
Showing 1 changed file with 10 additions and 1 deletion.
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 e4d061a

Please sign in to comment.