Class WorkItemDefinitionProjectService

  • All Implemented Interfaces:
    org.kie.workbench.common.stunner.bpmn.workitem.service.WorkItemDefinitionLookupService, org.kie.workbench.common.stunner.bpmn.workitem.service.WorkItemDefinitionService<org.kie.workbench.common.stunner.core.diagram.Metadata>

    @RequestScoped
    public class WorkItemDefinitionProjectService
    extends Object
    implements org.kie.workbench.common.stunner.bpmn.workitem.service.WorkItemDefinitionLookupService
    - It produces the work item definition registry for the current request - It performs look-ups by calling the VFS WorkItemDefinitionService, in order to populate a request's registry - If no work item definitions found for the module, it starts the deployment (see DEFAULT_DEPLOY_PREDICATE)
    • Constructor Detail

      • WorkItemDefinitionProjectService

        protected WorkItemDefinitionProjectService()
      • WorkItemDefinitionProjectService

        @Inject
        public WorkItemDefinitionProjectService​(org.kie.workbench.common.stunner.bpmn.workitem.WorkItemDefinitionCacheRegistry registry,
                                                org.kie.workbench.common.stunner.bpmn.backend.workitem.service.WorkItemDefinitionVFSLookupService vfsService,
                                                org.kie.workbench.common.stunner.bpmn.backend.workitem.deploy.WorkItemDefinitionDeployServices deployServices)
    • Method Detail

      • getRegistry

        @Produces
        @Default
        public org.kie.workbench.common.stunner.bpmn.workitem.WorkItemDefinitionRegistry getRegistry()
      • execute

        public Collection<org.kie.workbench.common.stunner.bpmn.workitem.WorkItemDefinition> execute​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata)
        Specified by:
        execute in interface org.kie.workbench.common.stunner.bpmn.workitem.service.WorkItemDefinitionService<org.kie.workbench.common.stunner.core.diagram.Metadata>