20-Turquoise
March 26, 2013
Question
How do I programmatically create an "Approve Promotion Request" Activity in a workflow
- March 26, 2013
- 0 replies
- 630 views
Windchill 9.1 M070
I have a customized Promotion Request Approval (don't we all...). I have added an "auto checker" that does some sanity checking on the object. If this fails I am doing the following:
1. send email to the Owner with the reasons the Promotion Request was rejected
2. setting the state, of the promotion request, to Rejected
3. and then End
What I would like to do is programmatically create an Activity to record the reasons for rejection in the comments. So in other words how do I programmatically create (in the workflow) an activity that would be like the below screenshot. This is a screenshot of a Promotion Request Approval that was
rejected by the Approver.
ActivityComments
--
I have a customized Promotion Request Approval (don't we all...). I have added an "auto checker" that does some sanity checking on the object. If this fails I am doing the following:
1. send email to the Owner with the reasons the Promotion Request was rejected
2. setting the state, of the promotion request, to Rejected
3. and then End
What I would like to do is programmatically create an Activity to record the reasons for rejection in the comments. So in other words how do I programmatically create (in the workflow) an activity that would be like the below screenshot. This is a screenshot of a Promotion Request Approval that was
rejected by the Approver.
ActivityComments
--

