Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Activity


      activityElement.appendChild(completionConditionElement);
    }
    List activities = ((Flow)activity).getActivities();
    if( !activities.isEmpty() ){
      for( Iterator i=activities.iterator(); i.hasNext(); ){
        Activity a = (Activity) i.next();
        activityElement.appendChild( activity2XML(a) );       
      }
    }

    return activityElement;
View Full Code Here


  protected Element sequence2XML(Activity activity) {
    Element activityElement = createBPELElement("sequence");
    List activities = ((Sequence) activity).getActivities();
    if (!activities.isEmpty()) {
      for (Iterator i = activities.iterator(); i.hasNext();) {
        Activity a = (Activity) i.next();
        activityElement.appendChild(activity2XML(a));
      }
    }
   
    return activityElement;
View Full Code Here

    return activityElement;
  }

  protected Element compensateScope2XML (Activity activity) {
    Element compensateScopeElement = createBPELElement("compensateScope");
    Activity scopeOrInvoke = ((CompensateScope)activity).getTarget();
    if ( scopeOrInvoke != null ) {     
      compensateScopeElement.setAttribute("scope",scopeOrInvoke.getName());
    }
    return compensateScopeElement;
  }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ON_EVENT__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ON_ALARM__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ELSE__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setTarget(Activity newTarget) {
    Activity oldTarget = target;
    target = newTarget;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.COMPENSATE_SCOPE__TARGET, oldTarget, target));
  }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ELSE_IF__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.IF__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetActivity(Activity newActivity, NotificationChain msgs) {
    Activity oldActivity = activity;
    activity = newActivity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.SCOPE__ACTIVITY, oldActivity, newActivity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

TOP

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

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.