Skip to main content
5-Regular Member
June 24, 2024
Question

Why is my variable not being evaluated?

  • June 24, 2024
  • 1 reply
  • 816 views

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:

 

RS_11013548_3-1719240502290.png

 

Variables:

RS_11013548_0-1719245506611.png

 

Workflow Expression node:


RS_11013548_1-1719240345068.png

 

Workflow Assigned Activity node:

 

RS_11013548_2-1719240360113.png

 

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!

1 reply

avillanueva
23-Emerald I
23-Emerald I
June 24, 2024

I would reply to this post with your solution and mark it as solved.

HelesicPetr
22-Sapphire II
22-Sapphire II
June 26, 2024

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