Codota Logo
Process.getId
Code IndexAdd Codota to your IDE (free)

How to use
getId
method
in
org.drools.definition.process.Process

Best Java code snippets using org.drools.definition.process.Process.getId (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

/**
 * Add a rule flow to this package.
 */
public void addProcess( Process process ) {
  if (this.ruleFlows == Collections.EMPTY_MAP) {
    this.ruleFlows = new HashMap<String, Process>();
  }
  this.ruleFlows.put( process.getId(),
            process );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void visitWorkflowProcess(final WorkflowProcess oldDefinition) {
  String oldProcessId = oldDefinition.getId();
  boolean found = false;
  for (org.drools.definition.process.Process process: newPkg.getProcesses()) {
    if (oldProcessId.equals(process.getId())) {
      found = true;
      break;
    }
  }
  if (!found){
    listener.debug("BinaryResourceDiffProducerImpl: Process "+oldProcessId+" is not present anymore. Adding to removed list.");
    this.removedDefinitions.add(oldDefinition);
    return;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void addProcess( final Process process ) {
  // XXX: could use a synchronized(processes) here.
  this.eventSupport.fireBeforeProcessAdded( process );
  lock();
  try {
    this.processes.put( process.getId(),
              process );
  } finally {
    unlock();
  }
  this.eventSupport.fireAfterProcessAdded( process );
}
origin: org.jbpm/jbpm-gwt-core

public static Process getProcess(String processId) {
  KnowledgeBase kbase = getSession().getKnowledgeBase();
  for (KnowledgePackage kpackage: kbase.getKnowledgePackages()) {
    for (Process process: kpackage.getProcesses()) {
      if (processId.equals(process.getId())) {
        return process;
      }
    }
  }
  return null;
}

origin: org.jbpm/jbpm-gwt-core

public static ProcessDefinitionRef processDefinition(Process process) {
  long version = 0;
  try {
    version = new Long(process.getVersion());
  } catch (NumberFormatException e) {
    // Do nothing, keep version 0
  }
  ProcessDefinitionRef result = new ProcessDefinitionRef(
    process.getId(), process.getName(), version);
  result.setPackageName(process.getPackageName());
  result.setDeploymentId("N/A");
  return result;
}

origin: org.jbpm/jbpm-gwt-core

@Test
public void testGetProcessByName(){
  assertEquals("Minimal", CommandDelegate.getProcessByName("Minimal Process").getId());
}

origin: org.jbpm/jbpm-human-task-mina

taskData.setProcessInstanceId(workItem.getProcessInstanceId());
if (session != null && session.getProcessInstance(workItem.getProcessInstanceId()) != null) {
  taskData.setProcessId(session.getProcessInstance(workItem.getProcessInstanceId()).getProcess().getId());
origin: org.jbpm/jbpm-human-task-mina

taskData.setProcessInstanceId(workItem.getProcessInstanceId());
if (session != null && session.getProcessInstance(workItem.getProcessInstanceId()) != null) {
  taskData.setProcessId(session.getProcessInstance(workItem.getProcessInstanceId()).getProcess().getId());
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

  Process process = (Process) kd;
  this.listener.debug( "KnowledgeAgent removing Process=" + process );
  this.kbase.removeProcess( process.getId() );
} else if ( kd instanceof TypeDeclaration ) {
origin: org.jbpm/jbpm-gwt-core

@Test
public void testProcessDefinition(){
  org.drools.definition.process.Process process = CommandDelegate.getProcess("Minimal");
  ProcessDefinitionRef processDefinitionRef = Transform.processDefinition(process);
  assertEquals(processDefinitionRef.getId(),process.getId());
  assertEquals(processDefinitionRef.getPackageName(),process.getPackageName());
  assertEquals(processDefinitionRef.getName(),process.getName());
}

org.drools.definition.processProcessgetId

Javadoc

The unique id of the Process.

Popular methods of Process

  • getName
    The name of the Process.
  • getPackageName
    The package name of this process.
  • getResource
  • getVersion
    The version of the Process. You may use your own versioning format (as the version is not interprete
  • setResource

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JComboBox (javax.swing)
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