Details
-
Bug
-
Resolution: Won't Do
-
Trivial
-
None
-
3.0 RC4
-
None
Description
code like:
ctx.setAttribute(WorkflowConstants.ATTRIBUTE_ACTION, WorkflowConstants.ACTION_REJECT, Context.LOCAL_SCOPE);
causes an error log entry:
magnolia: ERROR info.magnolia.module.workflow.WorkItemContext WorkItemContext.java(setAttribute:87) 15.11.2006 14:39:04 can't set value action
if executed in the execute(info.magnolia.context.Context) method of a workflow 'command' participant.
successful code has to look like:
ctx.removeAttribute(WorkflowConstants.ATTRIBUTE_ACTION, Context.LOCAL_SCOPE);
ctx.setAttribute(WorkflowConstants.ATTRIBUTE_ACTION, WorkflowConstants.ACTION_REJECT, Context.LOCAL_SCOPE);
Which is somewhat unexpected.
Checklists
Acceptance criteria