use of org.guvnor.common.services.project.model.WorkItemHandlerModel in project kie-wb-common by kiegroup.
the class KnowledgeSessionListItemPresenter method addWorkItemHandler.
public void addWorkItemHandler() {
workItemHandlersListPresenter.add(new WorkItemHandlerModel());
signalWorkItemHandlerAddedOrRemoved();
}
use of org.guvnor.common.services.project.model.WorkItemHandlerModel in project kie-wb-common by kiegroup.
the class WorkItemHandlerConverter method unmarshal.
public Object unmarshal(HierarchicalStreamReader reader, final UnmarshallingContext context) {
final WorkItemHandlerModel wih = new WorkItemHandlerModel();
wih.setType(reader.getAttribute("type"));
wih.setName(reader.getAttribute("name"));
return wih;
}
use of org.guvnor.common.services.project.model.WorkItemHandlerModel in project kie-wb-common by kiegroup.
the class WorkItemHandlerConverter method marshal.
public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingContext context) {
WorkItemHandlerModel wih = (WorkItemHandlerModel) value;
writer.addAttribute("type", wih.getType());
writer.addAttribute("name", wih.getName());
}
Aggregations