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(com.edorasware.commons.core.any.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)  | 
setApplicationContextpublic void addComment(org.flowable.engine.delegate.DelegateExecution execution)
public void addComment(com.edorasware.commons.core.any.AnyWorkObject workObjectInScope,
                       org.flowable.engine.delegate.DelegateExecution execution,
                       Map<String,Object> additionalContext,
                       String commentTemplate,
                       String targetObjectExpression,
                       String commentUserExpression,
                       String historyVariableName)
WorkObjectCommentServiceAdd a comment entry to a work object.
addComment in interface WorkObjectCommentServiceworkObjectInScope - 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.