Declare OnChange Example
Hi All,
In this blog we will see example of Declare Trigger.
Follow below steps
Step 1: Create Declare OnChange
CL = C-C-Art-Work-T
ID = OnChangeOfTStatus
Step 2: In OnChange Properties
Properties To Watch
1. .TUStatus
Conditions
When = Always
Choose Action = Call Activity {Note:- Second option is Suspend work Object}
When True Run
Activity OnChangeOfTStatus {No Parameter}
Activity
Create Activity CL = C-C-Art-Work-T ID = OnChangeOfTStatus
Activity Steps
1) Property-Set
.PreviousTStatus = .TStatusShadow
.TStatusShadow = .TStatus
2) Apply-DataTransform
Data Transform = SetPreviousStatusStartDate
Data Transform
CL = C-C-Art-Work-T
ID = SetPreviousStatusStartDate
Definition {TAB}
1) Set .PreviousStatusStartDate equal to .pyStatusWorkTimestamp
Thank you!! Will see you all in next blog post 😊.
Comments
Post a Comment