Tabnine Logo
Message
Code IndexAdd Tabnine to your IDE (free)

How to use
Message
in
com.effektif.workflow.api.model

Best Java code snippets using com.effektif.workflow.api.model.Message (Showing top 8 results out of 315)

origin: effektif/effektif

public void calledWorkflowInstanceEnded(final ActivityInstanceImpl callingActivityInstance, WorkflowInstanceImpl calledWorkflowInstance) {
 mapOutputVariables(callingActivityInstance, calledWorkflowInstance);
 calledWorkflowInstance.workflow.getWorkflowEngine()
     .send(new Message()
         .workflowInstanceId(callingActivityInstance.workflowInstance.getId())
         .activityInstanceId(callingActivityInstance.getId()),
       callingActivityInstance.workflowInstance);
}
origin: effektif/effektif

 @POST
 @Produces(MediaType.APPLICATION_JSON)
 public WorkflowInstance send(Message message) {
  log.info("Message "+message.getWorkflowInstanceId()+" / "+message.getActivityInstanceId());
  return workflowEngine.send(message);
 }
}
origin: effektif/effektif

public WorkflowInstance send(Message message, WorkflowInstanceImpl workflowInstance) {
 Map<String, Object> transientData = message.getTransientData();
 if (transientData !=null) {
  for (String key: transientData.keySet()) {
   workflowInstance.setTransientProperty(key, transientData.get(key));
  }
 }
 String activityInstanceId = message.getActivityInstanceId();
 ActivityInstanceImpl activityInstance = workflowInstance.findActivityInstance(activityInstanceId);
 if (activityInstance==null) {
  workflowInstanceStore.unlockWorkflowInstance(workflowInstance);
  throw new RuntimeException("Activity instance "+activityInstanceId+" not in workflow instance");
 }
 if (log.isDebugEnabled())
  log.debug("Signalling "+activityInstance);
 ActivityImpl activity = activityInstance.getActivity();
 activity.activityType.message(activityInstance, message);
 return workflowInstance.executeWork();
}
origin: effektif/effektif

@Override
public WorkflowInstance send(Message message) {
 WorkflowInstanceImpl workflowInstance = lockWorkflowInstanceWithRetry(message.getWorkflowInstanceId());
 return send(message, workflowInstance);
}
origin: effektif/effektif

public WorkflowInstance sendMessage(WorkflowInstance workflowInstance, String activityInstanceId) {
 return workflowEngine.send(new Message()
  .workflowInstanceId(workflowInstance.getId())
  .activityInstanceId(activityInstanceId));
}

origin: com.effektif/effektif-server

 @POST
 @Produces(MediaType.APPLICATION_JSON)
 public WorkflowInstance send(Message message) {
  log.info("Message "+message.getWorkflowInstanceId()+" / "+message.getActivityInstanceId());
  return workflowEngine.send(message);
 }
}
origin: effektif/effektif

public WorkflowInstance endTask(WorkflowInstance workflowInstance, String activityId) {
 ActivityInstance activityInstance = workflowInstance.findOpenActivityInstance(activityId);
 assertNotNull("Activity '"+activityId+"' not in workflow instance", activityInstance);
 return workflowEngine.send(new Message()
  .workflowInstanceId(workflowInstance.getId())
  .activityInstanceId(activityInstance.getId()));
}

origin: effektif/effektif

subInstance = workflowEngine.send(new Message()
 .workflowInstanceId(subInstance.getId())
 .activityInstanceId(subtaskInstance.getId()));
com.effektif.workflow.api.modelMessage

Most used methods

  • <init>
  • activityInstanceId
  • getActivityInstanceId
  • getWorkflowInstanceId
  • workflowInstanceId
  • getTransientData

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now