Package org.kie.kogito.process.impl
Class ProcessServiceImpl
java.lang.Object
org.kie.kogito.process.impl.ProcessServiceImpl
- All Implemented Interfaces:
ProcessService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Model>
Optional<Attachment>addAttachment(Process<T> process, String id, String taskId, SecurityPolicy policy, AttachmentInfo attachmentInfo) addComment(Process<T> process, String id, String taskId, SecurityPolicy policy, String commentInfo) <T extends Model>
ProcessInstance<T>createProcessInstance(Process<T> process, String businessKey, T model, Map<String, List<String>> headers, String startFromNodeId) <T extends Model>
ProcessInstance<T>createProcessInstance(Process<T> process, String businessKey, T model, Map<String, List<String>> headers, String startFromNodeId, String trigger, String kogitoReferenceId, CompositeCorrelation correlation) <T extends MappableToModel<R>,R>
Optional<R>deleteAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy) deleteComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy) <T extends MappableToModel<R>,R>
Optional<R><T extends Model>
Optional<Attachment>getAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy) <T extends Model>
Optional<Collection<Attachment>>getAttachments(Process<T> process, String id, String taskId, SecurityPolicy policy) getComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy) <T extends Model>
Optional<Collection<Comment>>getComments(Process<T> process, String id, String taskId, SecurityPolicy policy) <T extends MappableToModel<R>,R>
List<R>getProcessInstanceOutput(Process<T> process) getSchemaAndPhases(Process<T> process, String id, String taskId, String taskName, SecurityPolicy policy) <T extends MappableToModel<?>,R>
Optional<R>getTask(Process<T> process, String id, String taskId, SecurityPolicy policy, Function<WorkItem, R> mapper) getTaskByName(ProcessInstance<T> pi, String taskName) getTasks(Process<T> process, String id, SecurityPolicy policy) <T> longmigrateAll(Process<T> process, String targetProcessId, String targetProcessVersion) <T> voidmigrateProcessInstances(Process<T> process, String targetProcessId, String targetProcessVersion, String... processIds) saveTask(Process<T> process, String id, String taskId, SecurityPolicy policy, MapOutput model, Function<Map<String, Object>, R> mapper) <T extends MappableToModel<R>,R>
Optional<R>signalProcessInstance(Process<T> process, String id, Object data, String signalName) signalTask(Process<T> process, String id, String taskName) <T extends MappableToModel<R>,R>
Optional<R>taskTransition(Process<T> process, String id, String taskId, String phase, SecurityPolicy policy, MapOutput model) <T extends MappableToModel<R>,R>
Optional<R><T extends Model>
Optional<Attachment>updateAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy, AttachmentInfo attachment) updateComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy, String commentInfo) <T extends MappableToModel<R>,R>
Optional<R>updatePartial(Process<T> process, String id, T resource) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.kogito.process.ProcessService
createProcessInstance, createProcessInstance
-
Constructor Details
-
ProcessServiceImpl
-
-
Method Details
-
createProcessInstance
public <T extends Model> ProcessInstance<T> createProcessInstance(Process<T> process, String businessKey, T model, Map<String, List<String>> headers, String startFromNodeId) - Specified by:
createProcessInstancein interfaceProcessService
-
createProcessInstance
public <T extends Model> ProcessInstance<T> createProcessInstance(Process<T> process, String businessKey, T model, Map<String, List<String>> headers, String startFromNodeId, String trigger, String kogitoReferenceId, CompositeCorrelation correlation) - Specified by:
createProcessInstancein interfaceProcessService
-
getProcessInstanceOutput
- Specified by:
getProcessInstanceOutputin interfaceProcessService
-
findById
- Specified by:
findByIdin interfaceProcessService
-
migrateProcessInstances
public <T> void migrateProcessInstances(Process<T> process, String targetProcessId, String targetProcessVersion, String... processIds) throws UnsupportedOperationException - Specified by:
migrateProcessInstancesin interfaceProcessService- Throws:
UnsupportedOperationException
-
migrateAll
public <T> long migrateAll(Process<T> process, String targetProcessId, String targetProcessVersion) throws UnsupportedOperationException - Specified by:
migrateAllin interfaceProcessService- Throws:
UnsupportedOperationException
-
delete
- Specified by:
deletein interfaceProcessService
-
update
public <T extends MappableToModel<R>,R> Optional<R> update(Process<T> process, String id, T resource) - Specified by:
updatein interfaceProcessService
-
updatePartial
public <T extends MappableToModel<R>,R> Optional<R> updatePartial(Process<T> process, String id, T resource) - Specified by:
updatePartialin interfaceProcessService
-
getTasks
public <T extends Model> Optional<List<WorkItem>> getTasks(Process<T> process, String id, SecurityPolicy policy) - Specified by:
getTasksin interfaceProcessService
-
signalTask
public <T extends Model> Optional<WorkItem> signalTask(Process<T> process, String id, String taskName) - Specified by:
signalTaskin interfaceProcessService
-
getTaskByName
-
saveTask
public <T extends Model,R extends MapOutput> Optional<R> saveTask(Process<T> process, String id, String taskId, SecurityPolicy policy, MapOutput model, Function<Map<String, Object>, R> mapper) - Specified by:
saveTaskin interfaceProcessService
-
taskTransition
public <T extends MappableToModel<R>,R> Optional<R> taskTransition(Process<T> process, String id, String taskId, String phase, SecurityPolicy policy, MapOutput model) - Specified by:
taskTransitionin interfaceProcessService
-
getTask
public <T extends MappableToModel<?>,R> Optional<R> getTask(Process<T> process, String id, String taskId, SecurityPolicy policy, Function<WorkItem, R> mapper) - Specified by:
getTaskin interfaceProcessService
-
addComment
public <T extends Model> Optional<Comment> addComment(Process<T> process, String id, String taskId, SecurityPolicy policy, String commentInfo) - Specified by:
addCommentin interfaceProcessService
-
updateComment
public <T extends Model> Optional<Comment> updateComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy, String commentInfo) - Specified by:
updateCommentin interfaceProcessService
-
deleteComment
public <T extends Model> Optional<Boolean> deleteComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy) - Specified by:
deleteCommentin interfaceProcessService
-
addAttachment
public <T extends Model> Optional<Attachment> addAttachment(Process<T> process, String id, String taskId, SecurityPolicy policy, AttachmentInfo attachmentInfo) - Specified by:
addAttachmentin interfaceProcessService
-
updateAttachment
public <T extends Model> Optional<Attachment> updateAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy, AttachmentInfo attachment) - Specified by:
updateAttachmentin interfaceProcessService
-
deleteAttachment
public <T extends Model> Optional<Boolean> deleteAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy) - Specified by:
deleteAttachmentin interfaceProcessService
-
getAttachment
public <T extends Model> Optional<Attachment> getAttachment(Process<T> process, String id, String taskId, String attachmentId, SecurityPolicy policy) - Specified by:
getAttachmentin interfaceProcessService
-
getAttachments
public <T extends Model> Optional<Collection<Attachment>> getAttachments(Process<T> process, String id, String taskId, SecurityPolicy policy) - Specified by:
getAttachmentsin interfaceProcessService
-
getComment
public <T extends Model> Optional<Comment> getComment(Process<T> process, String id, String taskId, String commentId, SecurityPolicy policy) - Specified by:
getCommentin interfaceProcessService
-
getComments
public <T extends Model> Optional<Collection<Comment>> getComments(Process<T> process, String id, String taskId, SecurityPolicy policy) - Specified by:
getCommentsin interfaceProcessService
-
signalProcessInstance
public <T extends MappableToModel<R>,R> Optional<R> signalProcessInstance(Process<T> process, String id, Object data, String signalName) - Specified by:
signalProcessInstancein interfaceProcessService
-
getSchemaAndPhases
public <T extends Model> Map<String,Object> getSchemaAndPhases(Process<T> process, String id, String taskId, String taskName, SecurityPolicy policy) - Specified by:
getSchemaAndPhasesin interfaceProcessService
-