Building Blocks > Domain-Specific Building Blocks > Job Order Building Block > Key Services (Job Order Building Block)
Key Services (Job Order Building Block)
The job order building block contains services to add, retrieve, update and delete data for each table and validate the data before it is inserted into the job order database tables. You can view all services for the building block on the Services page of the PTC.JobOrderImpl.Manager Thing.
The following key services are executed from the PTC.JobOrderImpl.Manager Thing:
CloneJobOrder—Creates a clone of the given job order with the following exceptions. The actualStartTime and actualEndTime values are left blank, and the dispatchStatus is set to Dispatched.
GetJobOrderAndMaterialMasterInfo—Retrieves certain fields of a job order and a material master for the specified job order UID.
GetJobOrderDispatchStatusTime—Retrieves the time spent in each dispatch status for the given job order.
GetJobOrderExecutionData—Retrieves job order-related fields such as model, material master, and material definition for the given job order.
GetJobOrderTargetStatus—Retrieves the next possible valid dispatch statuses based on the state machine for the given job order. For example, if the current status of a job order is Running, this service will return Held and Completed because they are the next valid states for the running job order.
GetLatestJobOrderExecutionResponseForJobOrder—Retrieves the last job order execution response for the given job order UID.
GetLatestJobOrderExecutionResponseForModel—Returns the last job order execution response for the given model UID.
GetMaterialMasterManager—Retrieves the configured material master manager Thing.
GetMfgModelManager—Retrieves the configured manufacturing model manager Thing.
GetModelManagementManager—Retrieves the configured model management manager Thing.
GetProductionOrderManager—Retrieves the configured production order manager Thing.
GetStateMachineManager—Retrieves the configured state machine manager Thing.
GetWorkMasterManager—Retrieves the configured work master manager Thing.
GetValidDispatchStatusesForEvent—Retrieves valid dispatch statuses for an event. For example , If StartJobOrder is passed as input, the service returns the Held and Dispatched statuses. This means that the job order must be in a Held or Dispatched status to start the job order.
GetValidDispatchStatusesForStartJobOrder—Retrieves the valid dispatch status required before starting job order. By default, this service returns Dispatched and Held.
GetValidDispatchStatusesForStopJobOrder—Retrieves the valid dispatch status required before starting job order. By default, this service returns Running.
StartJobOrders—Starts a job order.
StopJobOrders—Stops a job order.
ValidateJobOrderSite—Validates the site parameter for the job order, the associated work master, material, and model.
Was this helpful?