Home
TeamSite
TeamSite, LiveSite and OpenDeploy
workflow script variable
catorarn
I am trying to do a JavaScript $IW_SCRIPT variable like this:
"$IW_BRANCH".match(/^(.*)_SaContent(.*)?$/) ? "true" : "false";
In regex buddy I got a successful match on the branch
/SA/main/bba/Interchange/bba_SaContent/maintenance
The workflow does not like transitioning into the conditional link that I set up for this.
I have an OR Gateway called IsSAContentBranch which has the above IsSAContent conditional link
The other conditional link IsNotSaContentBranch is:
"$IW_BRANCH".match(/^(.*)_(?!SaContent)(.*)?$/) ? "true" : "false";
which is meant to say, everything but _SaContent. I also tested that regex.
The behaviour I get is that it is transitioning to the IsNotSaContentBranch while I kick off the workflow in the bba_SAContent branch.
Any ideas what could be wrong here?
Find more posts tagged with
Comments
There are no comments yet