Class WorkflowRecordHelper

java.lang.Object
wt.change2.workflow.WorkflowRecordHelper

public class WorkflowRecordHelper extends Object
Utility class for creating WorkflowRecords with a WorkflowRecordPropagotor.

Supported API: true

Extendable: false
See Also:
  • 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:
      WTException
      WTPropertyVetoException -

      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:
      WTException
      WTPropertyVetoException -

      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:
      WTException
      WTPropertyVetoException -

      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:
      WTException
      WTPropertyVetoException -

      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