cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to create a WfAssignmentEventAudit object

XL_9673631
3-Newcomer

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>

3 REPLIES 3

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

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"

joe_morton_0-1734471370447.png

 

Per https://www.ptc.com/en/support/article/CS234435?source=search "There is no supported API to create resulting voting events or add comments".

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

Announcements

Top Tags