Package org.uengine.kernel

Examples of org.uengine.kernel.ActivityReference


    }
  }
 
  private void completeInitiatorWorkitem(ProcessInstance instance, ResultPayload resultPayload) throws Exception{
    ProcessDefinition definition = instance.getProcessDefinition();
    ActivityReference initiatorHumanActivityReference = definition.getInitiatorHumanActivityReference(instance.getProcessTransactionContext());
   
//    boolean isInitiationInSubprocess = false;
    String absoluteTracingTag = initiatorHumanActivityReference.getAbsoluteTracingTag();
   

    if(absoluteTracingTag.indexOf("@")>0){
//      isInitiationInSubprocess = true;
      String[] scopesByTracingTag = absoluteTracingTag.split("@");
View Full Code Here


      if(handlerActivity instanceof HumanActivity){
        humanActivity = (HumanActivity)handlerActivity;
      }else if(handlerActivity instanceof ComplexActivity){
        ComplexActivity complexActivity = ((ComplexActivity)handlerActivity);
        ActivityReference initiatorHumanActivityReference = complexActivity.getInitiatorHumanActivityReference(mainProcessInstance .getProcessTransactionContext());
       
        humanActivity = (HumanActivity)initiatorHumanActivityReference.getActivity();
      }
     
      completeWorkitem(mainInstanceId, humanActivity.getTracingTag(), null, resultPayload);

    }catch(Exception e){ 
View Full Code Here

    return inputStreamList;
  }

  public HashMap getInitiationParameterMap(String pvdid) throws RemoteException {
    try {
      ActivityReference initiatorHumanActivityReference = getInitiatorHumanActivityReference(pvdid);
     
      if(initiatorHumanActivityReference!=null){     
        String initiatorHumanActivityTracingTag = initiatorHumanActivityReference.getAbsoluteTracingTag();
        HumanActivity initiatorHumanActivity = (HumanActivity)initiatorHumanActivityReference.getActivity();
/*        String tool = initiatorHumanActivity.getTool();
        String url = "../wih/" + tool + "/index.jsp";
*/       
        Map parameterMap = initiatorHumanActivity.getParameterMap();

View Full Code Here

    modifiedDate = pd.getModifiedDate().getTime();

    setInitiateByFirstWorkitem(pd.isInitiateByFirstWorkitem());

    if(ptc!=null && isInitiateByFirstWorkitem()){
      ActivityReference initiatorActRef = pd.getInitiatorHumanActivityReference(ptc);
      HumanActivity initiatorHumanActivity = null;

      if(initiatorActRef!=null)
        initiatorHumanActivity = (HumanActivity)initiatorActRef.getActivity();

      if(initiatorHumanActivity!=null)
        //throw new RuntimeException(new UEngineException("Although this definition is set to be initiated by the first workitem, there's no initiating human activity."));
        setInitiatorHumanActivityTracingTag(initiatorHumanActivity.getTracingTag());
    }
View Full Code Here

TOP

Related Classes of org.uengine.kernel.ActivityReference

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.