Skip to content

Commit

Permalink
Merge pull request #253 from ProcessMaker/bugfix/252/sequence-flow-error
Browse files Browse the repository at this point in the history
Fix sequence flow bug
  • Loading branch information
velkymx authored Feb 25, 2019
2 parents 787f638 + b5dfa8a commit 9915475
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/components/nodes/sequenceFlow/sequenceFlow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,28 @@ export default {
renderConditionExpression() {
return !this.node.definition.conditionExpression.body ? '' : this.node.definition.conditionExpression.body;
},
createLabel() {
if (typeof this.node.definition.conditionExpression === 'undefined') {
return;
}
this.shape.labels([{
attrs: {
text: {
text: this.renderConditionExpression(),
},
},
position: expressionPosition,
}]);
},
},
mounted() {
this.shape = new joint.shapes.standard.Link({
router: {
name: 'orthogonal',
},
});
this.shape.labels([{
attrs: {
text: {
text: this.renderConditionExpression(),
},
},
position: expressionPosition,
}]);
this.createLabel();
},
};
</script>

0 comments on commit 9915475

Please sign in to comment.