5 Replies Latest reply on Aug 11, 2016 9:01 AM by a_upendra28

    How to incorporate workitem handlers in jBPM 6.3.0 workbench.

    a_upendra28

      Hi,

      I am trying to build an application, in which there is requirement of custom workitem handlers. I am able to create workitem handlers in eclipse (Luna Service Release 2 (4.4.2)) as per advise given at below links:

       

      However I am unable to use these handlers in processes, created  jBPM 6.3.0 workbench.

       

      Can someone please guide me how to incorporate the handlers in jBPM 6.3.0 workbench.

       

      Thanks in Advance.

      Upendra

        • 1. Re: How to incorporate workitem handlers in jBPM 6.3.0 workbench.
          jimmy001

          What do you mean with "Unable to use.."? How does this show up during process instance execution? Can the workitemhandler not be found or....

          • 2. Re: How to incorporate workitem handlers in jBPM 6.3.0 workbench.
            a_upendra28

            Hello Jimmy,

            Good day!

             

            Unable to use means - when I am following the instruction given at

            The mvn generated jar in could not be uploaded in artifact repository of jBPM 6.3.0 workbench.It gives some error during upload in regarding unable to read.

            message is as below:


            at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:57) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:49) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              at org.kie.scanner.MavenPomModelGenerator.parse(MavenPomModelGenerator.java:36) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              at org.drools.compiler.kproject.xml.PomModel$Parser.parse(PomModel.java:89) [drools-compiler-6.3.0.Final.jar:6.3.0.Final]

              at org.guvnor.m2repo.backend.server.helpers.PomModelResolver.resolveFromJar(PomModelResolver.java:44) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]

              at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.uploadJar(HttpPostHelper.java:144) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]

              at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.upload(HttpPostHelper.java:120) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]

              at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.handle(HttpPostHelper.java:60) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]

              at org.guvnor.m2repo.backend.server.M2Servlet.doPost(M2Servlet.java:58) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:53) [uberfire-servlet-security-0.7.3.Final.jar:0.7.3.Final]

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:45) [uberfire-servlet-security-0.7.3.Final.jar:0.7.3.Final]

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:27) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_92]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_92]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_92]

            Caused by: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.jbpm:jbpm-flow:jar:6.0.0.Final

              at org.kie.scanner.embedder.MavenEmbedder.readProject(MavenEmbedder.java:276) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:55) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              ... 47 more

            Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jbpm:jbpm-flow:jar:6.0.0.Final

              at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:384) [maven-aether-provider-3.2.2.jar:3.2.2]

              at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:231) [maven-aether-provider-3.2.2.jar:3.2.2]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:525) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:509) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) [aether-impl-1.0.0.v20140518.jar:]

              at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:159) [maven-core-3.2.2.jar:3.2.2]

              at org.apache.maven.project.DefaultProjectBuilder.resolveDependencies(DefaultProjectBuilder.java:202) [maven-core-3.2.2.jar:3.2.2]

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:175) [maven-core-3.2.2.jar:3.2.2]

              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:114) [maven-core-3.2.2.jar:3.2.2]

              at org.kie.scanner.embedder.MavenEmbedder.readProject(MavenEmbedder.java:271) [kie-ci-6.3.0.Final.jar:6.3.0.Final]

              ... 48 more

            Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Failure to find org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.0.0.Final in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-repository has elapsed or updates are forced

              at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:154) [maven-aether-provider-3.2.2.jar:3.2.2]

              at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1076) [maven-model-builder-3.2.2.jar:3.2.2]

              at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:427) [maven-model-builder-3.2.2.jar:3.2.2]

              at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:398) [maven-model-builder-3.2.2.jar:3.2.2]

              at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:389) [maven-model-builder-3.2.2.jar:3.2.2]

              at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:375) [maven-aether-provider-3.2.2.jar:3.2.2]

              ... 61 more

            Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.0.0.Final in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-repository has elapsed or updates are forced

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) [aether-impl-1.0.0.v20140518.jar:]

              at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:150) [maven-aether-provider-3.2.2.jar:3.2.2]

              ... 66 more

            Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.0.0.Final in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-repository has elapsed or updates are forced

              at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503) [aether-impl-1.0.0.v20140518.jar:]

              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) [aether-impl-1.0.0.v20140518.jar:]

              ... 69 more

             

             

            And when I am using

            its jar uploaded successfully in artifact repository, but my Custom WorkItem are not visible in JBPM workbench.

             

            I appreciate any help in above cases.

            Thanks in Advance.

             

            Upendra

            • 3. Re: How to incorporate workitem handlers in jBPM 6.3.0 workbench.
              jimmy001

              Hi,

               

              I have attached one of my pom files. You can try if this works for you and if so remove the dependencies you don't need.

              • 4. Re: How to incorporate workitem handlers in jBPM 6.3.0 workbench.
                a_upendra28

                Dear Jimmy,

                Many thanks for the pom.xml file.

                 

                Now the jar file uploading work is ok.

                I will let you know tomorrow about its integration with WorkItem.

                 

                Thanks in Advance.

                 

                Upendra

                • 5. Re: How to incorporate workitem handlers in jBPM 6.3.0 workbench.
                  a_upendra28

                  Dear Jimmy,


                  Many thanks, now my jar file has been integrated with my business process.


                  -Regards,

                  Upendra