Package de.mid.innovator.srv2api.icw2ac
Class ACPartitionHelper
java.lang.Object
de.mid.innovator.srv2api.icw2ac.ACPartitionHelper
An activity partition is a kind of activity group that identifies actions that have common characteristics.
Partitions divide the nodes and edges to constrain and show a view of the contained nodes. Partitions can share contents.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassignPartitionsToNodes(SrvContext srvCtx, List<? extends ACActivityNode> seqNode, List<? extends ACActivityGroup> seqGroup) static ACPartitioncreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) Create a new Activity Partition with template and container.static ACPartitioncreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) Create a new Activity Partition with stereotype and container.static ACPartitioninsertAtSelection(SrvContext srvCtx, MMCreateTemplate ohTemplatePartition, List<? extends ACPartition> seqPartitionSelection, K_INSERT kInsertAt) Inserts a newACPartitionusing a partition template.
-
Method Details
-
assignPartitionsToNodes
public static void assignPartitionsToNodes(SrvContext srvCtx, List<? extends ACActivityNode> seqNode, List<? extends ACActivityGroup> seqGroup) throws InoNetException, SrvErrorException Assigns each of the nodes to all of the partitions without removing any nodes from the partitions. Assignments are, therefore, only added but not deleted.- Parameters:
srvCtx- The context of the related innovator server.seqNode-seqGroup-- Throws:
InoNetExceptionSrvErrorException
-
insertAtSelection
public static ACPartition insertAtSelection(SrvContext srvCtx, MMCreateTemplate ohTemplatePartition, List<? extends ACPartition> seqPartitionSelection, K_INSERT kInsertAt) throws InoNetException, SrvErrorException Inserts a newACPartitionusing a partition template. If theACPartitionhas to be inserted relative to one or more other partitions, these partitions, and the insertion position may be specified.- Parameters:
srvCtx- The context of the related innovator server.ohTemplatePartition- the template for the new partitionseqPartitionSelection- The list of selected partitions (mandatory, at least one partition).kInsertAt- specifies where to insert the new relative to the selected partition- Throws:
InoNetExceptionSrvErrorException
-
create
public static ACPartition create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Activity Partition with stereotype and container.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ACPartition create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Activity Partition with template and container.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-