Why is my variable not being evaluated?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Why is my variable not being evaluated?
I need a variable to be evaluated inside Assigned Activity node (JSP didn't work either), so I can send information through the mail bot.
Workflow Template:
Variables:
Workflow Expression node:
Workflow Assigned Activity node:
BackgroundMethodServer logs:
2024-06-21 09:11:07,313 INFO [WfUserWorkQueue.PoolQueueThread-9] wt.system.out wcadmin - *************Found 2 objects in this promotion************* Objects undergoing promotion are <table><thead><tr style="background-color:yellow; font-weight:bold;"><td style="padding:5px; border:.5px solid black;">Promoted Items</td><td style="padding:5px; border:1px solid black; text-align:center;">Version</td></tr></thead><tbody><tr><td style="padding:5px; border:1px solid black;">10100184.prt</td><td style="padding:5px; border:1px solid black; text-align:center;">A00</td></tr><tbody><tr><td style="padding:5px; border:1px solid black;">sb100884.asm</td><td style="padding:5px; border:1px solid black; text-align:center;">A00</td></tr></tbody></table>
2024-06-21 09:11:18,937 INFO [EMailQueue.SchedulingThread] wt.system.out wcadmin - {notifica}
UPDATE:
Solved it by adding a new variable inside the node itself, copying the value of the target global variable!
- Labels:
-
General Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would reply to this post with your solution and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @RS_11013548
I would just add a clear description.
If you use a code in the Workflow Task and want to read a global workflow variable, you have to add this variable to the workflow task and set that value is copied from global workflow variable..
Base on that you can use it directly in your code on the workflow task.
If you use workflow expression with a code, then there is not needed to copy variable and you can use the global one directly.
PetrH
