4 Replies Latest reply on Jan 23, 2012 10:49 AM by jemmerling

    Where can I find API's for jBPM console UI?

    surendarmx

      Hi all,


      Similar to jBPM console, I need to design a UI for my web application.

      In my requirement, I need to build UI only to show the Task lists that are available to approve.

      Please suggest me where I can get the API's, that could help me to do that.

       

      Thanks in advance.

        • 1. Re: Where can I find API's for jBPM console UI?
          eaa

          You need to take a look at Human Task Client API: http://docs.jboss.org/jbpm/v5.2/userguide/ch.Human_Tasks.html#d0e3781

          • 2. Re: Where can I find API's for jBPM console UI?
            arunvg

            Check this example which is already posted in the community , shows a list of tasks for a user and also allows to complete  the listed tasks.

             

            http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example

             

             

            Check JbpmAPIUtil.java in the example

             

            .The method List <TaskSummary> getAssignedTasks(String id)  , shows how to get the details of task assigned to a user. Hope this helps

            • 3. Re: Where can I find API's for jBPM console UI?
              surendarmx

              Hi,

               

              I am working in the example,

               

              http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example

               

              To Run and Deploy,

              Use maven to create a war file (e.g., mvn package) and copy the war file to TOMCAT_HOME/webapps

               

              I am new to use Maven.

              While using maven(mvn package), I got the following error,

               

              "

              [INFO] Scanning for projects...

              [INFO] ------------------------------------------------------------------------

              [INFO] Building jbpm5webexample Maven Webapp

              [INFO]    task-segment: [package]

              [INFO] ------------------------------------------------------------------------

              [INFO] [resources:resources {execution: default-resources}]

              [INFO] Using 'UTF-8' encoding to copy filtered resources.

              [INFO] Copying 7 resources

              [INFO] [compiler:compile {execution: default-compile}]

              [INFO] Compiling 3 source files to C:\Surendar_work\18.01.12\WorkSpaces\JBPM5web

              examples\target\classes

              [INFO] ------------------------------------------------------------------------

              [ERROR] BUILD FAILURE

              [INFO] ------------------------------------------------------------------------

              [INFO] Compilation failure

               

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\drools\drools-core\5.2.0.M1\drools-core-5.2.0.M1.jar; error in opening zip

              file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\drools\drools-api\5.2.0.M1\drools-api-5.2.0.M1.jar; error in opening zip f

              ile

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\drools\drools-persistence-jpa\5.2.0.M1\drools-persistence-jpa-5.2.0.M1.jar

              ; error in opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\hibernate\hibernate-annotations\3.4.0.GA\hibernate-annotations-3.4.0.GA.ja

              r; error in opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\hibernate\hibernate-commons-annotations\3.1.0.GA\hibernate-commons-annotat

              ions-3.1.0.GA.jar; error in opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\hibernate\ejb3-persistence\1.0.2.GA\ejb3-persistence-1.0.2.GA.jar; error i

              n opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\hibernate\hibernate-core\3.3.0.SP1\hibernate-core-3.3.0.SP1.jar; error in

              opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-flow-builder\5.0.0\jbpm-flow-builder-5.0.0.jar; error in opening

              zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-flow\5.0.0\jbpm-flow-5.0.0.jar; error in opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-persistence-jpa\5.0.0\jbpm-persistence-jpa-5.0.0.jar; error in o

              pening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-human-task\5.0.0\jbpm-human-task-5.0.0.jar; error in opening zip

              file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-workitems\5.0.0\jbpm-workitems-5.0.0.jar; error in opening zip f

              ile

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\hornetq\hornetq-transports\2.0.0.GA\hornetq-transports-2.0.0.GA.jar; error

              in opening zip file

              error: error reading C:\Documents and Settings\surendar_sadhasivam\.m2\repositor

              y\org\jbpm\jbpm-bam\5.0.0\jbpm-bam-5.0.0.jar; error in opening zip file

               

              [INFO] ------------------------------------------------------------------------

              [INFO] For more information, run Maven with the -e switch

              [INFO] ------------------------------------------------------------------------

              [INFO] Total time: 2 seconds

              [INFO] Finished at: Mon Jan 23 12:00:50 IST 2012

              [INFO] Final Memory: 13M/32M

              "

               

              Please help me in this issue

               

              Thanks in adv !

              • 4. Re: Where can I find API's for jBPM console UI?
                jemmerling

                Hi Surendar,

                 

                It seems your problems are due to a lack of familiarity with Maven. I recommend reading some basic Maven tutorials.

                 

                You may want to define the following environment variables:

                 

                MAVEN_HOME

                M2_REPO

                 

                Another possible problem is if there is a proxy server in your environment, you will probably have to modify %MAVEN_HOME%\conf\settings.xml (this is the only situation in which I have had the necessity to modify this file).

                 

                Is your repostitory really at C:\Documents and Settings\surendar_sadhasivam\.m2\repository? Perhaps it is somewhere on the LAN.

                 

                OK from looking at %MAVEN_HOME%\conf\settings.xml, I can see that C:\Documents and Settings\surendar_sadhasivam\.m2\repository would be the default. You might need to manually create this folder and ensure it is writable.

                 

                Although I haven't tried to provide a complete answer to your problem, I hope this will lead you to the answers you need.

                 

                Good luck!

                 

                --JE

                 

                 

                Message was edited by: John Emmerling