Skip to content

Commit

Permalink
feat(core): changes condition script for passed by and coming in clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
maninder-pal-singh committed Jun 9, 2023
1 parent 1b517c4 commit 5851aab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,13 @@ export class GatewayLinkStrategy implements LinkStrategy<ModdleElement> {
var taskValuePair = readObj[key];
if(taskValuePair && taskValuePair.value){
var readDateValue = new Date(taskValuePair.value);
var today = new Date();
readDateValue.setHours(0,0,0,0);
today.setHours(0,0,0,0);
readDateValue.setDate(readDateValue.getDate()${condition});
if(${
isElse ? '!' : ''
}(readDateValue > new Date() && readDateValue.setDate(readDateValue.getDate()${condition}) < new Date())){
}(readDateValue.valueOf() === today.valueOf())){
ids.push(taskValuePair.id);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,13 @@ export class OrGatewayLinkStrategy implements LinkStrategy<ModdleElement> {
var taskValuePair = readObj[key];
if(taskValuePair && taskValuePair.value){
var readDateValue = new Date(taskValuePair.value);
var today = new Date();
readDateValue.setHours(0,0,0,0);
today.setHours(0,0,0,0);
readDateValue.setDate(readDateValue.getDate()${condition});
if(${
isElse ? '!' : ''
}(readDateValue > new Date() && readDateValue.setDate(readDateValue.getDate()${condition}) < new Date())){
}(readDateValue.valueOf() === today.valueOf())){
ids.push(taskValuePair.id);
}
}
Expand Down

0 comments on commit 5851aab

Please sign in to comment.