Search in sources :

Example 1 with WorkItemHandlerModel

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();
}
Also used : WorkItemHandlerModel(org.guvnor.common.services.project.model.WorkItemHandlerModel)

Example 2 with WorkItemHandlerModel

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;
}
Also used : WorkItemHandlerModel(org.guvnor.common.services.project.model.WorkItemHandlerModel)

Example 3 with WorkItemHandlerModel

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());
}
Also used : WorkItemHandlerModel(org.guvnor.common.services.project.model.WorkItemHandlerModel)

Aggregations

WorkItemHandlerModel (org.guvnor.common.services.project.model.WorkItemHandlerModel)3