Article - CS182596

How to ensure that a process-level variable updated within two simultaneously running activities gets both values appended to it in Windchill PDMLink

Modified: 05-Nov-2019   


Applies To

  • Windchill PDMLink 10.1 to 11.0

Description

  • A workflow has a global process variable defined (ex. test of type java.lang.String)
User-added image
  • Workflow has two activities that are simultaneously kicked off
User-added image
  • Variable local to each activity in the workflow is defined within each activity and is initialized from the global variable
User-added image
  • test is set up to capture comments entered into the tasks:
test+=workitem.getContext().getTaskComments();
  • Activity is set up to display the variable on the Activity page:
User-added image
 
  • When the activities run simultaneously the process-level variable only appends the comments from the simultaneous activity completed last rather than the comments from both activities
  • Example:
    • User A assigned to Activity 1 enters in "User A comments" and completes his task first
    • User B assigned to Activity 1a enters in "User B comments" and completes his task
    • When Activity 2 is executed test will only display "User B comments" on the Activity 2 page
This is a printer-friendly version of Article 182596 and may be out of date. For the latest version click CS182596