Permalink
Browse files

- updating HTWorkItemHandler to work with the NodeName, instead of Ta…

…skName
  • Loading branch information...
1 parent 7de91e8 commit 61c19033ea3993e0d18ccce858a8766e82a749f9 @Salaboy Salaboy committed Apr 5, 2013
@@ -75,6 +75,7 @@ protected void handleNode(final Node node, final Element element, final String u
}
humanTaskNode.getWork().setParameter("ActorId", owner);
}
+ humanTaskNode.getWork().setParameter("NodeName", humanTaskNode.getName() );
}
protected String readPotentialOwner(org.w3c.dom.Node xmlNode, HumanTaskNode humanTaskNode) {
@@ -65,7 +65,7 @@ public void setAction(OnErrorAction action) {
protected Task createTaskBasedOnWorkItemParams(KieSession session, WorkItem workItem) {
Task task = new TaskImpl();
- String taskName = (String) workItem.getParameter("TaskName");
+ String taskName = (String) workItem.getParameter("NodeName");
if (taskName != null) {
List<I18NText> names = new ArrayList<I18NText>();
names.add(new I18NTextImpl("en-UK", taskName));

0 comments on commit 61c1903

Please sign in to comment.