Package org.jboss.bpm.monitor.model.bpaf

Examples of org.jboss.bpm.monitor.model.bpaf.Tuple


              ProcessInstanceEvent instanceEvent = (ProcessInstanceEvent) source;
              target.setProcessInstanceID(instanceEvent.getProcessInstanceId().toString());
            }
          
           //put the data as a property.
           Tuple data = new Tuple();
           data.setName("data");
           data.setValue(getProcessEventAsString(source));
          
           target.addData(data);
          
            // can return null and thus invalidate the event
            target = mapping.adoptDetails(target, source);
View Full Code Here


        Event.EventDetails details = target.getEventDetails();
        details.setCurrentState(State.Closed_Cancelled_Terminated);

        InstanceStartAdapter.mapDefault(target, source);
       
        Tuple endTime = new Tuple();
        endTime.setName("process-end-time");
        endTime.setValue(String.valueOf(source.getTimestamp().getTime()));
       
        target.addData(endTime);
       
        return target;
    }
View Full Code Here

 
  public static final String ACTIVITY_NAME = "PARTNERLINK_MODIFICATION";
 
  public Event adoptDetails(Event target, PartnerLinkModificationEvent source) {
      target.setActivityName(ACTIVITY_NAME);
      Tuple tuple = new Tuple();
      tuple.setName("partner_link_name");
      tuple.setValue(source.getpLinkName());
      target.addData(tuple);
    return target;
  }
View Full Code Here

        Event.EventDetails details = target.getEventDetails();
        details.setCurrentState(State.Open_Running);

        mapDefault(target, source);
       
        Tuple startTime = new Tuple();
        startTime.setName("process-start-time");
        startTime.setValue(String.valueOf(source.getTimestamp().getTime()));
       
        target.addData(startTime);
       
        return target;
    }
View Full Code Here

        if(State.Closed_Completed_Failed == details.getCurrentState())
            target.getDataElement().add(new FaultType(source.getFault()));

        InstanceStartAdapter.mapDefault(target, source);
       
        Tuple endTime = new Tuple();
        endTime.setName("process-end-time");
        endTime.setValue(String.valueOf(source.getTimestamp().getTime()));
       
        target.addData(endTime);
       
        return target;
    }      
View Full Code Here

        switch (source.getNewState())
        {
            case ProcessState.STATE_TERMINATED:
                target.getEventDetails().setCurrentState(State.Closed_Cancelled_Terminated);
               
                Tuple endTime = new Tuple();
                endTime.setName("process-end-time");
                endTime.setValue(String.valueOf(source.getTimestamp().getTime()));
               
                target.addData(endTime);
               
                break;
            /*
 
View Full Code Here

TOP

Related Classes of org.jboss.bpm.monitor.model.bpaf.Tuple

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.