Hello.
Here the automation chain :
- Repository.GetDocument:
value: "@{This.get(0).id}"
- Context.SetVar:
name: nbrWrkFlowCourant
value: "99"
- javascript.AS_VerifierPublier
- Log:
level: warn
message: "@{Context[\"nbrWrkFlowCourant\"]}"
category: DEBUGSG nbrWrkFlowCourant test 222
- RunOperation:
id: "@{ Context[\"nbrWrkFlowCourant\"] ==\"1\" ? \"AC-ToWormAuto\" : \"AC-SGTEST\"}"
isolate: "false"
Operation #3 (javascript.AS_VerifierPublier) put the value "1" in the variable nbrWrkFlowCourant
Operation #4 log in server.log the value "1"
Operation #5 Execute AC-SGTEST not AC-ToWormAuto !!!
If i try id: "@{ \"1\"==\"1\" ? \"AC-ToWormAuto\" : \"AC-SGTEST\"}" IT work
if i try id: "@{ Context[\"nbrWrkFlowCourant\"] ==\"99\" ? \"AC-ToWormAuto\" : \"AC-SGTEST\"}" not working
if i try id: "@{ Context[\"nbrWrkFlowCourant\"] ==\"\" ? \"AC-ToWormAuto\" : \"AC-SGTEST\"}" not working
I think i fail to get the value but i dont know why.
Please help !!!
TY
Steeve