Class BPItemDefinitionHelper

java.lang.Object
de.mid.innovator.srv2api.icw2bp.BPItemDefinitionHelper

public abstract class BPItemDefinitionHelper extends Object
The Business Object defines an object important for the definition of business processes or concepts. It can be linked to a definition of the structure of the object.
See Also:
  • Method Details

    • assureDefinitionBetweenAwareElementAndStructure

      public static BPItemDefinition assureDefinitionBetweenAwareElementAndStructure(SrvContext srvCtx, BPItemAwareElement ohItemAware, ELClassifier ohStructure) throws InoNetException, SrvErrorException
      Given one item aware element and one structure definition this method checks of there is already one item definition between them. If there is, the existing one is returned, otherwise a new item definition will be created and returned.
      Parameters:
      srvCtx - The context of the related innovator server.
      ohItemAware - The item aware element to be tied to the new item definition
      ohStructure - The class defining the structure of the new item definition
      Throws:
      InoNetException
      SrvErrorException
    • determineItemDefinitionForStructureElement

      public static BPItemDefinition determineItemDefinitionForStructureElement(SrvContext srvCtx, ADClientAble partOfStructure, ADClientAble elemForProfileAndOwner, MMStereotype stereoItemDefinition, MEHierarchyAble ownerItemDefinition, MMStereotype stereoStructureDefinition, MEHierarchyAble ownerStructureDefinition) throws InoNetException, SrvErrorException
      For the structure parts passed as the argument action is taken to derive a structure and to create or determine an item definition linked to the structure. The command returns the item definition which refers to the derived structure.
      Parameters:
      srvCtx - The context of the related innovator server.
      partOfStructure - A structure itself or a part of it to create a new view from. If a view and and object do already exist, the existing one will be taken.
      elemForProfileAndOwner - An element which serves as an anchor to determine the valid profiles and the owners of the new elements iff they must be created
      stereoItemDefinition - As an option the stereotype of the item definition can be specified. If it is, the stereotype must be taken for a new element. If there is already a matching element, the stereotype will be ignored.
      ownerItemDefinition - As an option the owner of a new item definition can be specified. If there is already a matching element, the owner will be ignored.
      stereoStructureDefinition - As an option the stereotype of the structure definition can be specified. If it is, the stereotype will be taken for a new element. If there is already a matching element, the stereotype will be ignored.
      ownerStructureDefinition - As an option the owner of a new structure definition can be specified. If there is already a matching element, the owner will be ignored.
      Throws:
      InoNetException
      SrvErrorException
    • create

      public static BPItemDefinition create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) throws InoNetException, SrvErrorException
      Create a new Business Object with stereotype and container.
      Parameters:
      srvCtx - The context of the related innovator server.
      ohStereotype - Stereotype for the new element
      ohContainer - Container for the new element
      Throws:
      InoNetException
      SrvErrorException
    • create

      public static BPItemDefinition create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) throws InoNetException, SrvErrorException
      Create a new Business Object with template and container.
      Parameters:
      srvCtx - The context of the related innovator server.
      ohTemplate - Template for the new element
      ohContainer - Container for the new element
      Throws:
      InoNetException
      SrvErrorException