Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Translate the entire conversation 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>

4 REPLIES 4
HelesicPetr
22-Sapphire II
(To:XL_9673631)

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".

HelesicPetr
22-Sapphire II
(To:joe_morton)

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

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 
 

Announcements
Top Tags