Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Targets


        if (result == null) result = caseIExtensibilityElement(condition);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.TARGETS: {
        Targets targets = (Targets)theEObject;
        Object result = caseTargets(targets);
        if (result == null) result = caseExtensibleElement(targets);
        if (result == null) result = caseExtensibleElement_1(targets);
        if (result == null) result = caseWSDLElement(targets);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here


  }
 
  protected void addStandardElements(Element activityElement, Activity activity) {
    // NOTE: Mind the order of these elements.
    Node firstChild = activityElement.getFirstChild();
    Targets targets = activity.getTargets();
    if (targets != null) {
      activityElement.insertBefore(targets2XML(targets), firstChild);
    }
    Sources sources = activity.getSources();
    if (sources != null) {
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetTargets(Targets newTargets, NotificationChain msgs) {
    Targets oldTargets = targets;
    targets = newTargets;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ACTIVITY__TARGETS, oldTargets, newTargets);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

  void setFlowActivityLinks(Flow flow, CtMethod<?> flowMethod, Activity activity){
    HashMap<String,Link> linkMap = new HashMap<String,Link>();
    FlowActivity flowActivity = flowMethod.getAnnotation(FlowActivity.class);
    if (flowActivity != null){
      if (flowActivity.targets().length > 0){
        Targets targets = BPELFactory.eINSTANCE.createTargets();
        activity.setTargets(targets);
        for(int i=0; i < flowActivity.targets().length; i++){
          FlowLinkTarget linkTarget = flowActivity.targets()[i];
          if (!linkTarget.name().equals("")){
            Link link = linkMap.get(linkTarget.name());
            if (link == null){
              link = BPELFactory.eINSTANCE.createLink();
              link.setName(linkTarget.name());
              linkMap.put(linkTarget.name(), link);
              flow.getLinks().getChildren().add(link);
            }           
            Target target = BPELFactory.eINSTANCE.createTarget();
            target.setLink(link);
            target.setActivity(activity)
            targets.getChildren().add(target);
          }
        }       
      }     
      if (flowActivity.sources().length > 0){
        Sources sources = BPELFactory.eINSTANCE.createSources();
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @customized
   */
  public void setActivity(Activity newActivity) {
    Targets targets = newActivity.getTargets();
    if (targets == null) {
      targets = BPELFactory.eINSTANCE.createTargets();
      newActivity.setTargets(targets);
    }
    targets.getChildren().add(this);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.Targets

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.