com.ibm.xtools.bpmn2.util
Class ExternalDomainArtifactsReferenceUtil

java.lang.Object
  extended by com.ibm.xtools.bpmn2.util.ExternalDomainArtifactsReferenceUtil

public class ExternalDomainArtifactsReferenceUtil
extends java.lang.Object

Use this class only when you want to get BPMN Interfaces/Operations as well as referenced External domain Interfaces/Operations from supported BPMN elements. This class provides utility methods for getting operations and supportedInterfaces, which includes BPMN Operations and Interfaces as well as external domain interfaces and operations referenced in BPMN model. for e.g. UML Interfaces/Operations associated with CallableElement/ServiceTask With out this class we are not able to retrieve external domain Interfaces and Operations, because ServiceTask::getOperation only returns if there is a BPMN Operation associated to the task similarly CallableElement::getSupportedInterfaces only returns BPMN interfaces BPMN model stores external domain Interfaces and Operations by using Relationship feature of BPMN meta model. Need to revisit the methods when BPMN modeler starts supporting other domain artifacts such as WSDL, etc.

Since:
1.81

Constructor Summary
ExternalDomainArtifactsReferenceUtil()
           
 
Method Summary
static org.eclipse.emf.ecore.EObject getMessageEventDefinitionOperation(MessageEventDefinition messageEventDefinition)
          This method will return Operation (bpmn/external domain operation) associated with the given MessageEventDefinition.
static org.eclipse.emf.ecore.EObject getServiceTaskOperation(ServiceTask serviceTask)
          This method will return Operation (bpmn/external domain operation) associated with the given ServiceTask.
static java.util.Set<org.eclipse.emf.ecore.EObject> getSupportedInterfaces(CallableElement callableElement)
          This method will return supported Interfaces associated with the given CallableElement including BPMN Interfaces as well as external domain Interfaces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalDomainArtifactsReferenceUtil

public ExternalDomainArtifactsReferenceUtil()
Method Detail

getServiceTaskOperation

public static org.eclipse.emf.ecore.EObject getServiceTaskOperation(ServiceTask serviceTask)
This method will return Operation (bpmn/external domain operation) associated with the given ServiceTask. If the ServiceTask contains a BPMN Operation, it returns BPMN Operation object otherwise it returns appropriate external domain Operation object If you are only interested in getting BPMN Operation, use ServiceTask::getOperation method instead

Parameters:
serviceTask -
Returns:
Object - an operation object

getMessageEventDefinitionOperation

public static org.eclipse.emf.ecore.EObject getMessageEventDefinitionOperation(MessageEventDefinition messageEventDefinition)
This method will return Operation (bpmn/external domain operation) associated with the given MessageEventDefinition. If the MessageEventDefinition contains a BPMN Operation, it returns BPMN Operation object otherwise it returns appropriate external domain Operation object If you are only interested in getting BPMN Operation, use MessageEventDefinition::getOperation method instead

Parameters:
serviceTask -
Returns:
Object - an operation object

getSupportedInterfaces

public static java.util.Set<org.eclipse.emf.ecore.EObject> getSupportedInterfaces(CallableElement callableElement)
This method will return supported Interfaces associated with the given CallableElement including BPMN Interfaces as well as external domain Interfaces. If you are only interested in getting BPMN Interfaces, use CallableElement::getSupportedInterfaces method instead

Parameters:
callableElement -
Returns:
list of Objects - the list may contain BPMN Interfaces and external Interfaces depends on the given CallableElement