Skip to main content
1-Visitor
May 22, 2012
Solved

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

  • May 22, 2012
  • 9 replies
  • 5940 views

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

Best answer by MichaelEspinosa

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
June 5, 2012

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

1-Visitor
June 19, 2012

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...

dsolat1-VisitorAuthor
1-Visitor
June 20, 2012

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