I couldnt find a clear or consistent answer for this in the documentation or after searching devnet, so I decided to post a new thread:
is it possible to modify a value of global configurable variable from CSURLExternalTask?
scenario:
let s say I have a wfm:
start -> URL external task -> OR Gatway:
->(conditional link "$IW_CV(Comment)" == "" ? "true" : "false"

-> End
->(conditional link "$IW_CV(Comment)" == "" ? "false" : "true"

-> Email task -> End
the workflow has global configurable variable "Comment" with default value blank.
I go thru an external task where I want to either set the global CV "Comment" to something or leave it blank.
Then I transition to an OR gateway where I check (in a script variable) if there is anything in "$IW_CV(Comment)".
if there is a comment then i will transition to an email task, otherwise i will end the job.
now, how do i modify the $IW_CV(Comment) from CSURLExternalTask (after job was started)?
Things i tried and didn't work:
1) Created a job variable JVComment = $IW_CV(Comment), then used workflow.setVariable("JVComment ", "zzz"); this works in preprocessor but not in CSURLExternalTask .
2) I Used WF variable Finish OP for the url task: created set operation named "Comment" and value is a configurable variable "CommentOP" and did task.setVariable("CommentOP");, this worked for me before in TS 671 SP1, but for some reason i cant get it to work in 672 SP2.
TS 672 SP2
Redhat
WMF 1.0.1