Overview Schemas Index

AP203_CONFIGURATION_CONTROLLED_3D_DESIGN_OF_MECHANICAL_PARTS_AND_ASSEMBLIES_MIM (jsdai.SAp203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim)


FUNCTION cc_design_person_and_organization_correlation
          (e : cc_design_person_and_organization_assignment) : BOOLEAN;

 LOCAL po_role : STRING ; END_LOCAL ; po_role := e \ person_and_organization_assignment . role . name ; CASE po_role OF 'request_recipient' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | SIZEOF  ( [ 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'change_request' , 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'start_request' ] * TYPEOF  ( x ) ) = 1 ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'initiator' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | SIZEOF  ( [ 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'change_request' , 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'start_request' , 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'start_work' , 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'change' ] * TYPEOF  ( x ) ) = 1 ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'creator' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | SIZEOF  ( [ 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'product_definition_formation' , 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'product_definition' ] * TYPEOF  ( x ) ) = 1 ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'part_supplier' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'product_definition_formation' IN  TYPEOF  ( x ) ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'design_supplier' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'product_definition_formation' IN  TYPEOF  ( x ) ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'design_owner' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.product' IN  TYPEOF  ( x ) ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'configuration_manager' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'configuration_item' IN  TYPEOF  ( x ) ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'contractor' : IF  SIZEOF  ( e . items ) <> SIZEOF  ( QUERY  ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.contract' IN  TYPEOF  ( x ) ) ) THEN  RETURN  ( FALSE  ) ; END_IF  ; 'classification_officer' : IF SIZEOF  ( e . items ) <> SIZEOF ( QUERY ( x <* e . items | 'ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim.' + 'security_classification' IN TYPEOF ( x ) ) ) THEN RETURN  ( FALSE ) ; END_IF ; OTHERWISE : RETURN  ( TRUE  ) ; END_CASE ; RETURN ( TRUE ) ; 

END_FUNCTION; -- cc_design_person_and_organization_correlation

public class FCc_design_person_and_organization_correlation
          public static Value run(SdaiContext _context, Value e)