cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Why is my variable not being evaluated?

RS_11013548
4-Participant

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:

 

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!

2 REPLIES 2
avillanueva
22-Sapphire II
(To:RS_11013548)

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

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

Top Tags