public class CommentHandlingService extends AbstractActivityService implements WorkObjectCommentService
This service bean is used to create and add a comment to a target work object.
COMMENTTARGETOBJECT_EXPRESSION_KEY, COMMENTTEMPLATE_KEY, COMMENTUSER_EXPRESSION_KEY, HISTORYVARIABLENAME_KEY
Constructor and Description |
---|
CommentHandlingService(boolean propagateError) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(AnyWorkObject workObjectInScope,
org.flowable.engine.delegate.DelegateExecution execution,
Map<String,Object> additionalContext,
String commentTemplate,
String targetObjectExpression,
String commentUserExpression,
String historyVariableName)
Add a comment entry to a work object.
|
void |
addComment(org.flowable.engine.delegate.DelegateExecution execution) |
setApplicationContext
public void addComment(org.flowable.engine.delegate.DelegateExecution execution)
public void addComment(AnyWorkObject workObjectInScope, org.flowable.engine.delegate.DelegateExecution execution, Map<String,Object> additionalContext, String commentTemplate, String targetObjectExpression, String commentUserExpression, String historyVariableName)
WorkObjectCommentService
Add a comment entry to a work object.
addComment
in interface WorkObjectCommentService
workObjectInScope
- work object scope for expression evaluationexecution
- activiti execution (optional)additionalContext
- additional context for expression evaluation (optional)commentTemplate
- comment template nametargetObjectExpression
- target work object expressioncommentUserExpression
- comment user Id expressionhistoryVariableName
- comment history variable nameCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.