Codota Logo
TimerManager$StartProcessJobContext.getProcessId
Code IndexAdd Codota to your IDE (free)

How to use
getProcessId
method
in
org.jbpm.process.instance.timer.TimerManager$StartProcessJobContext

Best Java code snippets using org.jbpm.process.instance.timer.TimerManager$StartProcessJobContext.getProcessId (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: kiegroup/jbpm

jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
if (processCtx instanceof StartProcessJobContext) {
  jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
origin: kiegroup/jbpm

jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
if (processCtx instanceof StartProcessJobContext) {
  jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
origin: kiegroup/jbpm

logger.debug("Timer for starting process {} is ignored as the deployment is in deactivated state", ctx.getProcessId());
tm.getTimerMap().remove(ctx.getTimer().getId());
tm.getTimerService().removeJob(ctx.getJobHandle());
  ctx.getTimer().setPeriod(0);
((ProcessRuntimeImpl)kruntime.getProcessRuntime()).startProcess(ctx.getProcessId(), ctx.getParamaeters(), "timer");
logger.error("Error when executing start process " + ctx.getProcessId() + " timer job", e);
origin: kiegroup/jbpm

@Override
public boolean removeJob(JobHandle jobHandle) {
  if (jobHandle == null) {
    return false;
  }
  jobHandle.setCancel( true );
  JobContext jobContext = ((GlobalJDKJobHandle) jobHandle).getTimerJobInstance().getJobContext();
  try {
    ProcessJobContext processCtx = null;
    if (jobContext instanceof SelfRemovalJobContext) {
      processCtx = (ProcessJobContext) ((SelfRemovalJobContext) jobContext).getJobContext();
    } else {
      processCtx = (ProcessJobContext) jobContext;
    }
    
    String jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
    if (processCtx instanceof StartProcessJobContext) {
      jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
    }
    activeTimer.remove(jobname);
    globalTimerService.getTimerJobFactoryManager().removeTimerJobInstance( ((GlobalJDKJobHandle) jobHandle).getTimerJobInstance() );
  } catch (ClassCastException e) {
    // do nothing in case ProcessJobContext was not given
  }
  boolean removed =  this.scheduler.remove( (Runnable) ((GlobalJDKJobHandle) jobHandle).getFuture() );
  return removed;       
}

origin: org.jbpm/jbpm-services-ejb-timer

protected String getJobName(JobContext ctx, Long id) {
  String jobname = null;
  
  if (ctx instanceof ProcessJobContext) {
    ProcessJobContext processCtx = (ProcessJobContext) ctx;
    jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
    if (processCtx instanceof StartProcessJobContext) {
      String deploymentId = (String) processCtx.getKnowledgeRuntime().getEnvironment().get(EnvironmentName.DEPLOYMENT_ID);
      jobname = deploymentId + "-StartProcess-" + ((StartProcessJobContext) processCtx).getProcessId() + "-" + processCtx.getTimer().getId();
    }
  } else if (ctx instanceof NamedJobContext) {
    jobname = ((NamedJobContext) ctx).getJobName();
  } else {
    jobname = "Timer-"+ctx.getClass().getSimpleName()+ "-" + id;
  
  }
  return jobname;
}

origin: org.jbpm/jbpm-flow

@Override
public boolean removeJob(JobHandle jobHandle) {
  if (jobHandle == null) {
    return false;
  }
  jobHandle.setCancel( true );
  JobContext jobContext = ((GlobalJDKJobHandle) jobHandle).getTimerJobInstance().getJobContext();
  try {
    ProcessJobContext processCtx = null;
    if (jobContext instanceof SelfRemovalJobContext) {
      processCtx = (ProcessJobContext) ((SelfRemovalJobContext) jobContext).getJobContext();
    } else {
      processCtx = (ProcessJobContext) jobContext;
    }
    
    String jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
    if (processCtx instanceof StartProcessJobContext) {
      jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
    }
    activeTimer.remove(jobname);
    globalTimerService.getTimerJobFactoryManager().removeTimerJobInstance( ((GlobalJDKJobHandle) jobHandle).getTimerJobInstance() );
  } catch (ClassCastException e) {
    // do nothing in case ProcessJobContext was not given
  }
  boolean removed =  this.scheduler.remove( (Runnable) ((GlobalJDKJobHandle) jobHandle).getFuture() );
  return removed;       
}

origin: org.jbpm/jbpm-flow

logger.debug("Timer for starting process {} is ignored as the deployment is in deactivated state", ctx.getProcessId());
tm.getTimerMap().remove(ctx.getTimer().getId());
tm.getTimerService().removeJob(ctx.getJobHandle());
  ctx.getTimer().setPeriod(0);
((ProcessRuntimeImpl)kruntime.getProcessRuntime()).startProcess(ctx.getProcessId(), ctx.getParamaeters(), "timer");
logger.error("Error when executing start process " + ctx.getProcessId() + " timer job", e);
origin: org.jbpm/jbpm-flow

jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
if (processCtx instanceof StartProcessJobContext) {
  jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
origin: org.jbpm/jbpm-flow

jobname = processCtx.getSessionId() + "-" + processCtx.getProcessInstanceId() + "-" + processCtx.getTimer().getId();
if (processCtx instanceof StartProcessJobContext) {
  jobname = "StartProcess-"+((StartProcessJobContext) processCtx).getProcessId()+ "-" + processCtx.getTimer().getId();
org.jbpm.process.instance.timerTimerManager$StartProcessJobContextgetProcessId

Popular methods of TimerManager$StartProcessJobContext

  • <init>
  • getJobHandle
  • getKnowledgeRuntime
  • getParamaeters
  • getTimer
  • getTrigger

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now