Package wt.change2.workflow
Class WorkflowRecordHelper
java.lang.Object
wt.change2.workflow.WorkflowRecordHelper
Utility class for creating WorkflowRecords with a WorkflowRecordPropagotor.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddWorkflowRecords(wt.workflow.engine.WfVotingEventAudit votingEventAudit, List workflowRecords, QueryResult queryResult) Creates WorkflowRecords for each query result and add the records to the workflowRecords collection.static voidaddWorkflowRecords(wt.workflow.engine.WfVotingEventAudit votingEventAudit, WTCollection workflowRecords, QueryResult queryResult) Creates WorkflowRecords for each query result and add the records to the workflowRecords collection.static WorkflowRecordcreateWorkflowRecord(wt.workflow.engine.WfVotingEventAudit votingEventAudit, Persistable primaryBusinessObject) Create a WorkflowRecord linked to the votingEventAudit and the primaryBusinessObject.static WorkflowRecordcreateWorkflowRecord(wt.workflow.engine.WfVotingEventAudit votingEventAudit, Persistable primaryBusinessObject, Boolean windchillSignOffActivity, String windchillApprovalPath) Create a WorkflowRecord linked to the votingEventAudit and the primaryBusinessObject.static <T extends Persistable>
TgetPrimaryBusinessObjectType(wt.workflow.engine.WfVotingEventAudit votingEventAudit) Get's the primarBusinessObject for the votingEventAudit.
-
Method Details
-
createWorkflowRecord
public static WorkflowRecord createWorkflowRecord(wt.workflow.engine.WfVotingEventAudit votingEventAudit, Persistable primaryBusinessObject, Boolean windchillSignOffActivity, String windchillApprovalPath) throws WTException, WTPropertyVetoException Create a WorkflowRecord linked to the votingEventAudit and the primaryBusinessObject.- Parameters:
votingEventAudit-primaryBusinessObject-windchillSignOffActivity-windchillApprovalPath-- Returns:
- Throws:
WTExceptionWTPropertyVetoException-
Supported API: true
-
createWorkflowRecord
public static WorkflowRecord createWorkflowRecord(wt.workflow.engine.WfVotingEventAudit votingEventAudit, Persistable primaryBusinessObject) throws WTException, WTPropertyVetoException Create a WorkflowRecord linked to the votingEventAudit and the primaryBusinessObject.- Parameters:
votingEventAudit-primaryBusinessObject-- Returns:
- Throws:
WTExceptionWTPropertyVetoException-
Supported API: true
-
addWorkflowRecords
public static void addWorkflowRecords(wt.workflow.engine.WfVotingEventAudit votingEventAudit, WTCollection workflowRecords, QueryResult queryResult) throws WTException, WTPropertyVetoException Creates WorkflowRecords for each query result and add the records to the workflowRecords collection.- Parameters:
votingEventAudit-workflowRecords-queryResult-- Throws:
WTExceptionWTPropertyVetoException-
Supported API: true
-
addWorkflowRecords
public static void addWorkflowRecords(wt.workflow.engine.WfVotingEventAudit votingEventAudit, List workflowRecords, QueryResult queryResult) throws WTException, WTPropertyVetoException Creates WorkflowRecords for each query result and add the records to the workflowRecords collection.- Parameters:
votingEventAudit-workflowRecords-queryResult-- Throws:
WTExceptionWTPropertyVetoException-
Supported API: true
-
getPrimaryBusinessObjectType
public static <T extends Persistable> T getPrimaryBusinessObjectType(wt.workflow.engine.WfVotingEventAudit votingEventAudit) throws WTException Get's the primarBusinessObject for the votingEventAudit.- Parameters:
votingEventAudit-- Returns:
- Throws:
WTException-
Supported API: true
-