LeanProdFlowPlanActivityRelation::createRelation Method
Creates a PlanActivityRelationship object and the related records in the database.
Syntax
server public static PlanActivityRelationship createRelation(
PlanRefRecId _plan,
PlanActivityId _independent,
PlanActivityId _dependent,
ConstraintValue _constraintValue,
UnitOfMeasureRecId _unitOfMeasure,
PlanCycleTimeRatio _cycleTimeRatio)
Run On
Server
Parameters
- _plan
Type: PlanRefRecId Extended Data Type
The record identifier of the plan to which the LeanProdFlowPlanActivityRelation will belong.
- _independent
Type: PlanActivityId Extended Data Type
The identifier of the independent PlanActivity object.
- _dependent
Type: PlanActivityId Extended Data Type
The identifier of the dependent PlanActivity object.
- _constraintValue
Type: ConstraintValue Extended Data Type
The constraint value.
- _unitOfMeasure
Type: UnitOfMeasureRecId Extended Data Type
The unit of measure in which the constraint value is stated.
- _cycleTimeRatio
Type: PlanCycleTimeRatio Extended Data Type
The cycle time ratio for the current relation.
Return Value
Type: PlanActivityRelationship Table
A PlanActivityRelationship record if the object and records were created; otherwise, an error is thrown.