How to create a WfAssignmentEventAudit object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to create a WfAssignmentEventAudit object
Version: Windchill Below 11.0
Use Case: I used a api below this scentence to complete a WfAssignedActivity object ,but it did not created a related WfAssignmentEventAudit object,why ? wt.workflow.engine.WfEngineHelper.service.changeState(assignedActivity, WfTransition.COMPLETE);
Description:
I used a api below this scentence to complete a WfAssignedActivity object ,but it did not created a related WfAssignmentEventAudit object,why ?
wt.workflow.engine.WfEngineHelper.service.changeState(assignedActivity, WfTransition.COMPLETE);</span>
- Labels:
-
API
-
General Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @XL_9673631
I would recommend to check how to enable OOTB Audit events
CS208355 - How to enable Security Audit Reporting for Out Of The Box events
also check
CS319164 - [Knowledge Hub] Windchill PLM - Security Audit Reporting
OOTB the WfAssigmentEventAudit is not set to be logged so you have to turn it on.
PetrH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I think the issue is that the Event Audit is optional. In the normal workflow editor, you can select whether or not to "record voting"
Per https://www.ptc.com/en/support/article/CS234435?source=search "There is no supported API to create resulting voting events or add comments".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @joe_morton
I was sure that he is talking about a Security Audit Reporting 😄 .I didn't check it
Voting, if the task is just completed, then the voting is not recorded because there is no voting.
If you complete the Task by API then you have to create the WfAssignmentEventAudit by code and write the vote option
and yes, there is no supported api to do so, but you can do it.
PetrH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @XL_9673631,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Anurag
