Skip to main content
1-Visitor
May 22, 2012 8:46 AM UTC
Solved

How can the actitvy comments be retrived in a variable. Since i require to send these comments in notification mail in a workflow

How can the actitvy comments be retrived in a variable. Since i require to send these comments in notification mail in a workflow.

1-Visitor
Jun 19, 2012 1:45 AM UTC

1. In the Workflow, define a global String variable. example: eeComment.

2. In the Assigned Activity task:

a) define a String variable. example: eeComment. "Copy into" and "Initialize From" the global variable defined in step 1. Only select "Resetable"

b) within the desired "Transitions" use this java code:

wt.workflow.work.WfAssignedActivity activity = (wt.workflow.work.WfAssignedActivity) self.getObject();

wt.workflow.engine.ProcessData actData = activity.getContext();

eeComments = actData.getTaskComments();

c) Click on "Check Syntax"

3. The global String variable, populated in step 2, shall be available in the "Notification Robot". Be sure to select the variable using the "Variable" comand button located on the "Message" tab in the Notification Robot.


I hope this make sense...

9 replies

1-Visitor
Jun 5, 2012 2:38 PM UTC

I would love to know this answer as well. Someone please reply...

Translate
1-Visitor
Jun 19, 2012 1:45 AM UTC

1. In the Workflow, define a global String variable. example: eeComment.

2. In the Assigned Activity task:

a) define a String variable. example: eeComment. "Copy into" and "Initialize From" the global variable defined in step 1. Only select "Resetable"

b) within the desired "Transitions" use this java code:

wt.workflow.work.WfAssignedActivity activity = (wt.workflow.work.WfAssignedActivity) self.getObject();

wt.workflow.engine.ProcessData actData = activity.getContext();

eeComments = actData.getTaskComments();

c) Click on "Check Syntax"

3. The global String variable, populated in step 2, shall be available in the "Notification Robot". Be sure to select the variable using the "Variable" comand button located on the "Message" tab in the Notification Robot.


I hope this make sense...

Translate
dsolat1-VisitorAuthor
1-Visitor
Jun 20, 2012 5:21 AM UTC

Thanks a lot...... Have tried it and it works fine......

Translate