Class ProductionRunHelper
- java.lang.Object
-
- org.apache.ofbiz.manufacturing.jobshopmgt.ProductionRunHelper
-
public final class ProductionRunHelper extends java.lang.Object
Helper for Production Run maintenance
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
getLinkedProductionRuns(Delegator delegator, LocalDispatcher dispatcher, java.lang.String productionRunId, java.util.List<ProductionRun> productionRuns)
static java.util.Map<java.lang.String,java.lang.Object>
getProductionRun(Delegator delegator, java.lang.String productionRunId)
Get a Production Run.static java.lang.String
getRootProductionRun(Delegator delegator, java.lang.String productionRunId)
static boolean
hasTask(Delegator delegator, java.lang.String taskName, java.lang.String workEffortId)
-
-
-
Method Detail
-
getProductionRun
public static java.util.Map<java.lang.String,java.lang.Object> getProductionRun(Delegator delegator, java.lang.String productionRunId)
Get a Production Run. Check if routing - product link exists.- Parameters:
delegator
- the delegatorproductionRunId
- the production run id- Returns:
- Map with the result of the service, the output parameters are
-
hasTask
public static boolean hasTask(Delegator delegator, java.lang.String taskName, java.lang.String workEffortId) throws GenericEntityException
- Throws:
GenericEntityException
-
getLinkedProductionRuns
public static void getLinkedProductionRuns(Delegator delegator, LocalDispatcher dispatcher, java.lang.String productionRunId, java.util.List<ProductionRun> productionRuns) throws GenericEntityException
- Throws:
GenericEntityException
-
getRootProductionRun
public static java.lang.String getRootProductionRun(Delegator delegator, java.lang.String productionRunId) throws GenericEntityException
- Throws:
GenericEntityException
-
-