congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TaskService
Code IndexAdd Tabnine to your IDE (free)

How to use
TaskService
in
org.jbpm.api

Best Java code snippets using org.jbpm.api.TaskService (Showing top 12 results out of 315)

origin: org.jbpm.jbpm4/jbpm-console-integration

public void completeTask(long taskId, Map data, String performingUser) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 if (data != null)
  taskService.setVariables(Long.toString(taskId), data);
 taskService.completeTask(Long.toString(taskId));
}
origin: org.jbpm.jbpm4/jbpm-console-integration

public void releaseTask(long taskId, String performingUser) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 taskService.assignTask(Long.toString(taskId), null);
}
origin: org.jbpm.jbpm4/jbpm-console-integration

public List<TaskRef> getUnassignedTasks(String idRef, String participationType) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 List<TaskRef> results = new ArrayList<TaskRef>();
 if (null == participationType || participationType.equals(Participation.CANDIDATE)) {
  List<Task> groupTasks = taskService.findGroupTasks(idRef);
  adoptTasks(groupTasks, results);
 } else {
  throw new IllegalArgumentException("Unknown participation type: " + participationType);
 }
 return results;
}
origin: org.mule.modules/mule-module-jbpm

public void completeTask(Task task, String outcome, Map variables)
{
  processEngine.getTaskService().completeTask(task.getId(), outcome, variables);
}
origin: org.jbpm.jbpm4/jbpm-console-form-plugin

RepositoryService repoService = processEngine.getRepositoryService();
Task task = taskService.getTask(ref.getReferenceId());
Set<String> outcomes = taskService.getOutcomes(task.getId());
for (String outcome : outcomes) {
 outcomeDirective.getValues().add(outcome);
origin: org.jbpm.jbpm4/jbpm-console-integration

public TaskRef getTaskById(long taskId) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 Task t0 = taskService.getTask(Long.toString(taskId));
 return ModelAdaptor.adoptTask(t0);
}
origin: org.jbpm.jbpm4/jbpm-console-integration

public List<TaskRef> getAssignedTasks(String idRef) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 List<TaskRef> results = new ArrayList<TaskRef>();
 List<Task> assignedTasks = taskService.findPersonalTasks(idRef);
 adoptTasks(assignedTasks, results);
 return results;
}
origin: org.jbpm.jbpm4/jbpm-console-integration

List<Participation> participations = taskService.getTaskParticipations(jbpmTask.getId());
for (Participation participation : participations) {
origin: org.mule.transports/mule-transport-jbpm

public void completeTask(Task task, String outcome, Map variables)
{
  processEngine.getTaskService().completeTask(task.getId(), outcome, variables);
}
origin: org.jbpm.jbpm4/jbpm-console-form-plugin

private boolean taskHasForm(String id) {
 boolean result = false;
 TaskService taskService = processEngine.getTaskService();
 Task task = taskService.getTask(id);
 result = (task.getFormResourceName() != null);
 return result;
}
origin: org.jbpm.jbpm4/jbpm-console-integration

public void completeTask(long taskId, String outcome, Map data, String performingUser) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 if (data != null)
  taskService.setVariables(Long.toString(taskId), data);
 taskService.completeTask(Long.toString(taskId), outcome);
}
origin: org.jbpm.jbpm4/jbpm-console-integration

public void assignTask(long taskId, String idRef, String performingUser) {
 TaskService taskService = this.processEngine.get(TaskService.class);
 taskService.assignTask(Long.toString(taskId), idRef);
}
org.jbpm.apiTaskService

Most used methods

  • completeTask
  • getTask
  • assignTask
  • findGroupTasks
  • findPersonalTasks
  • getOutcomes
  • getTaskParticipations
  • setVariables

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Join (org.hibernate.mapping)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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