I can modify the properties of task and let it saved in database , the same as the sample jboss-seam-todo does:
<h:inputText value="#{task.description}" size="16" />
<h:inputText value="#{task.variables['event'].desc}" size="16" />
@Stateless
@Name("eventmake")
public class MakeAction implements Make, Serializable {
@Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
Event event = new Event();
@CreateProcess(definition = "itsm")
public String make() {
return "login";
}
public Event getEvent() {
return event;
}
public void setEvent(Event event) {
this.event = event;
}
}