Tabnine Logo
WorkflowInstanceImpl.executeWork
Code IndexAdd Tabnine to your IDE (free)

How to use
executeWork
method
in
com.effektif.workflow.impl.workflowinstance.WorkflowInstanceImpl

Best Java code snippets using com.effektif.workflow.impl.workflowinstance.WorkflowInstanceImpl.executeWork (Showing top 5 results out of 315)

origin: effektif/effektif

 public void run() {
  try {
   work = workAsync;
   workAsync = null;
   isAsync = true;
   if (updates != null) {
    getUpdates().isWorkChanged = true;
    getUpdates().isAsyncWorkChanged = true;
   }
   executeWork();
  } catch (Throwable e) {
   log.error("in workflow execution", e);
  }
 }
};
origin: effektif/effektif

/** Second part of starting a new workflow instance: executing the start activities. */
public WorkflowInstance startExecute(WorkflowInstanceImpl workflowInstance) {
 WorkflowImpl workflow = workflowInstance.workflow;
 if (log.isDebugEnabled()) log.debug("Starting "+workflowInstance);
 if (workflow.startActivities!=null) {
  for (ActivityImpl startActivityDefinition: workflow.startActivities) {
   if (workflowInstance.startActivityIds == null
       || workflowInstance.startActivityIds.contains(startActivityDefinition.getId())) {
    workflowInstance.execute(startActivityDefinition);
   }
  }
 } else {
  workflowInstance.endAndPropagateToParent();
 }
 notifyInsert(workflowInstance);
 workflowInstanceStore.insertWorkflowInstance(workflowInstance);
 return workflowInstance.executeWork();
}
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

 return workflowInstanceImpl.executeWork();
} finally {
 workflowInstanceStore.unlockWorkflowInstance(workflowInstanceImpl);
origin: effektif/effektif

 @Override
 public void execute(JobController jobController) {

  ActivityInstanceImpl activityInstance =
    jobController.getWorkflowInstance().findActivityInstance(jobController.getJob().getActivityInstanceId());

  if (activityInstance != null) {
   for (TimerImpl timer : activityInstance.activity.getTimers()) {
    if (timer.timer instanceof BoundaryEventTimer) {
     BoundaryEventTimer boundaryEventTimer = (BoundaryEventTimer) timer.timer;
     for (String transitionId : boundaryEventTimer.boundaryEvent.getToTransitionIds()) {
      activityInstance.takeTransition(
        jobController.getWorkflowInstance().getWorkflow().findTransitionByIdLocal(transitionId));
     }
    }
   }
   jobController.getWorkflowInstance().executeWork();
  } else {
   if (log.isDebugEnabled()) log.debug("activityInstance is null, job is not executed. Looked for activityInstance: " + jobController.getJob().getActivityInstanceId());
  }
 }
}
com.effektif.workflow.impl.workflowinstanceWorkflowInstanceImplexecuteWork

Popular methods of WorkflowInstanceImpl

  • <init>
  • getId
  • toWorkflowInstance
  • findActivityInstance
  • getUpdates
  • notifyUnlockListeners
  • removeLock
  • setVariableValue
  • addAsyncWork
  • addJob
  • addLockedWorkflowInstance
  • addSyncWork
  • addLockedWorkflowInstance,
  • addSyncWork,
  • addUnlockListener,
  • addWork,
  • cancel,
  • destroyScopeInstance,
  • endAndPropagateToParent,
  • execute,
  • findActivityInstanceByActivityId

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JComboBox (javax.swing)
  • Best IntelliJ plugins
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