Monday, September 2, 2013

jBPM6 Showcase: getting started with the jBPM installer

This blog is part of a series showcasing jBPM6.  The goal of this blog is to help you downloading, installing and running the jbpm-installer, which will help you installing a demo setup (including the core engine, the web console, the eclipse tooling, etc.) on your local machine.
 
Step1: Download the installer
 
First of all, you need to download the installer. There are two versions, a full installer (which already contains a lot of the dependencies that are necessary during the installation) and a minimal installer (which only contains the installer and will download all dependencies). In general, it is probably best to download the full installer: jBPM-{version}-installer-full.zip
 
Step 2: Installation
 
The installer creates a demo setup, which includes the core engine, the web console (deployed on JBoss AS7), the eclipse tooling, etc.  It also contains a small example that you can use to run through each of the components.
Note: This install script assumes you have Java JDK 1.6+ (set as JAVA_HOME), and Apache Ant 1.7+ installed. If you don't, use the following links to download and install Java and/or Apache Ant.
The easiest way to get started is to simply run the installation script to install the entire demo setup.  Open a command prompt, go into the install folder where you unzipped the installer and run the following command:
 
ant install.demo
 
This will:
  • Install JBoss AS7
  • Download Eclipse
  • Install jbpm-console war into AS
  • Install the Drools & jBPM Eclipse plugin
  • Install the Eclipse BPMN2 Modeler
 
When you run the installer for the first time, this could take some time (we are downloading an Eclipse installation specifically for your OS), so go and grab a cup of coffee now ;)
Note: The install script also allows you to use JBoss EAP 6.1 instead of  JBoss AS7, install the Eclipse plugins into an existing Eclipse installation, change the persistence configuration or authentication and authorization, etc. but that is outside the scope of this showcase.
Step 3: Starting up

Once the demo setup has finished, you can start playing with the various components by starting the demo setup:

ant start.demo
 
This will:
  • Start the H2 database (which is used by default for storing all runtime information)
  • Start the AS
  • Start Eclipse
 
If everything went smoothly, your Eclipse application should have started up, and you should be able to open the web console by opening your web browser and navigating to:
Note that it could take a minute to start up the AS and web application.  If the web page doesn't show up after a while, make sure you don't have a firewall blocking that port, or another application already using the port 8080.  You can always take a look at the server log jbpm-installer/jboss-as-7.1.1.Final/standalone/log/server.log
In one of my next showcase blogs, I'll show you how to get started with the web application and Eclipse tooling.
 
If you also want to try out the dashboard builder (a monitoring web application to visualizate, customize and/or create various dashboards, reports and charts), with some default charts for monitoring your process instances, now execute (which will deploy the application so you can access it through the links in the jbpm-console):
 
ant install.dashboard.into.jboss
 
When you're done playing, simply close the Eclipse application, and run the following command to shut down the AS and H2 database:
 
ant stop.demo
 
What to do if I encounter problems or have questions?
 
You can always contact the jBPM community for assistance:

61 comments:

  1. Hello Sir,


    I installed jBPM 6 using those tutorials:
    http://kverlaen.blogspot.com/2013/09/jbpm6-showcase-getting-started-with.html
    and
    http://www.youtube.com/watch?v=kCgMc7WB7ZE

    Currently, I'm trying to model a business process with jBPM 6.
    My reference is:
    http://docs.jboss.com/jbpm/v3/demos/movies/jbpm-overview.htm

    Once Eclipse is started, I launch File > New > Other...,I don't found the perspective "JBoss jBPM" .
    It is missing "JBoss jBPM" , I can't create a "Process Project" !!!!!!!!!!!.

    I don't know what's the problem !!!!!!!!!!.
    Can you help me ?.



    Cordially.

    ReplyDelete
    Replies
    1. The docs you linked are for jBPM version 3, please use the jBPM 6 documentation instead.

      Delete
  2. Thanks Sir for your attention


    Absolutely,
    Your tutorial (this tutorial)
    and
    this reference: http://www.attuneinfocom.com/blog/installation-of-jbpm-v6-beta2
    helped me to install jBPM6
    I achieve all the steps and at the end of every step I recieved a successful message.
    So it's OK !!!.
    I didn't know what is missing !!!!!!???????.


    Cordially greetings.

    ReplyDelete
  3. Thanks Sir so much.
    It's solved !!!.

    ReplyDelete
  4. Hi Kris,

    Thank you for detailed steps.
    I am following your tutorial and faacing issue while running "ant start.demo"

    I am getting:
    BUILD FAILED
    JBoss application server did not start within 5 minutes

    After running ant -v I can see that its stuck at "Checking for listener at localhost:8080"
    Port is free and environment variables are also set.

    JAVA_HOME = C:\Program Files\Java\jdk1.7.0_21\bin

    Can you help me to resolve this issue.

    Thanks,
    Tanmay

    ReplyDelete
    Replies
    1. It seems the application server did not start up correctly in time. If you are using an older / slow machine, you could try increasing the timeout in standalone.xml. Take a look at the server.log in standalone/log, it should contain information about anything that might have gone wrong (for example you might have another application already using port 8080).

      Delete
    2. Hi Kris,
      I have increased the timeout to 10 minutes, but it does not start up.
      server.log is not generated out while processing,hence i have no idea what is going wrong.

      Delete
    3. If there's no server.log, it wasn't able to start the server. Could you try opening a command prompt, go to the server /bin folder and run "standalone.bat -c standalone-full.xml" manually (or ./standalone.sh -c standalone-full.xml for linux/mac)?

      Delete
    4. Hi,
      Im facing the same issue.
      My java -version result is :
      java version "1.7.0_65"
      OpenJDK Runtime Environment (IcedTea 2.5.2) (7u65-2.5.2-3~14.04)
      OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

      I don't understand why the server can't start up ?
      Could you help me?

      Delete
    5. Is there a server.log file? If not, does manually starting the server as explained above work?

      Delete
    6. I can start the server with the ./standalone.sh -c standalone-full.xml command and it works fine and i only have log when i do this.
      I cannot start the server with the ant task start.jboss
      I added a echo "test" at the top of the standalone.sh file and it doesnt appear...

      Delete
    7. Strange, as the install script isn't doing much more than that:
      https://github.com/droolsjbpm/jbpm/blob/master/jbpm-installer/build.xml#L496

      Could you try setting the spawn="yes" property to false, this will execute the call as part of this process rather than a forked new one, which might give some output in the command window about what is going on.

      Delete
    8. yes i can see the stacktrace with spawn="no". It was an authorization problem because I used ant start.jboss command instead of sudo ant start.jboss... yes I m newbie in linux world ;)
      Thank you very much for you help

      Delete
    9. Kris Sir, on starting the server.log file manually it says: Setting java property to "C:\Program Files (x86) \Java\bin\java". What should be done?

      Delete
  5. Hi - have you had any luck changing the port from 8080 to another port? I found some documentation for doing it in jBPM 5 - but I'm not finding anything for 6/

    ReplyDelete
  6. Thanks For Yours Tutorial

    jbpm6 - build.xml:508: jboss did not start within 5 minutes

    I am set the environment of my System is

    Note : i am using windows 7 - 64 bit.

    Java -version is 1.7

    ANT -Version is 1.7.1

    JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45

    ANT_HOME=D:\ant

    PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;

    Every thing is fine......

    I am Install the demo using command in command prompt is ant install.demo

    Then am starting the demo using ant start.demo

    Then am getting Error as:

    *****>>> BUILD FAILED C:\jbpm-installer\build.xml:508: JBoss application server did not start within 5 minutes <<<*******

    Iam using jbpm 1.0.6 zip.

    My Jboss Server is not starting can you give any suggestion to start.......

    Following Screen will gives a clarity........

    ReplyDelete
    Replies
    1. It seems it failed to deploy within 5minutes. Are you using an old machine (in which case increasing the timeout in the standalone.xml might help)?
      Otherwise, take a look at the server.log to see what might be going on.

      Delete
  7. Hii
    I am facing a fatal problem with JBPM 6 Designer “Kie- workbench ”
    After drawing my process when tried to open the process again I found no Nodes only connections
    And when try to create new process no start nodes appeared and when try to drag a new node it returned back to the Object Library Menu on the right?
    And Nothing in the server.log file

    ReplyDelete
    Replies
    1. Which browser are you using? There is an issue with the latest Chrome (v34) which makes your process diagram all messed up on reload. Try using another browser like Firefox, updating to the (currently beta) v35 also seems to solve the issue.

      Delete
  8. Hi all ,

    I am faceing problem of installation of JBPM6 .

    pls give me how to solve this .

    https://community.jboss.org/message/868234?tstart=0

    ReplyDelete
  9. i have finished install.demo, but i can't run ant start.demo

    i type ant start.demo, then has errors:

    13:36:49,751 INFO [org.jboss.dashboard.kpi.KPIInitialModule] (MSC service thread 1-7) Parsing KPI's XML file: WEB-INF/etc/appdata/initialData/jbpmKPIs.xml
    13:36:50,104 INFO [org.jboss.dashboard.profiler.memory.MemoryProfiler] (MSC service thread 1-7) Freed 7.361 Mb bytes. Total = 385.125 Mb. Free = 323.606 Mb (84.026184%)
    13:36:50,136 ERROR [org.jboss.dashboard.dataset.sql.SQLDataSet] (MSC service thread 1-7) Error in load() SQLDataset. SQL = select total.processname, ifnull(total.instances,0) total, ifnull(active.instances_act,0) active, ifnull(completed.instances_compl,0) completed, ifnull(pending.instances_pend,0) pending, ifnull(suspended.instances_susp,0) suspended, ifnull(aborted.instances_abrt,0) aborted
    from
    (select pi.processinstanceid as pId, pi.processname as processname, count(*) as instances
    from processinstancelog pi group by pi.processinstanceid,processname) as total
    left outer join
    (select pi.processinstanceid as pId, count(*) as instances_act
    from processinstancelog pi
    where pi.status=1 group by pi.processinstanceid) as active
    on (total.pId=active.pId)
    left outer join
    (select pi.processinstanceid as pId, count(*) as instances_compl
    from processinstancelog pi
    where pi.status=2 group by pi.processinstanceid) as completed
    on (total.pId=completed.pId)
    left outer join
    (select pi.processinstanceid as pId, count(*) as instances_pend
    from processinstancelog pi
    where pi.status=0 group by pi.processinstanceid) as pending
    on (total.pId=pending.pId)
    left outer join
    (select pi.processinstanceid as pId, count(*) as instances_susp
    from processinstancelog pi
    where pi.status=4 group by pi.processinstanceid) as suspended
    on (total.pId=suspended.pId)
    left outer join
    (select pi.processinstanceid as pId, count(*) as instances_abrt
    from processinstancelog pi
    where pi.status=3 group by pi.processinstanceid) as aborted
    on (total.pId=aborted.pId)
    where 1 = 1
    order by processname: org.h2.jdbc.JdbcSQLException: Column "PI.PROCESSNAME" not found; SQL statement:

    ReplyDelete
    Replies
    1. This sometimes seems to happen when you start the application server up the first time, when the dashbuilder war is deploying before the jbpm-console war created all the necessary database tables. Restarting the server (ant stop.demo and ant start.demo) once should do the trick.

      Delete
  10. Hello,


    The first time when I try to work with KIE Workbench, I didn't encounter problem :
    I used it very well either using tutorials like http://people.redhat.com/kverlaen/jbpm6F-installer-console.swf, ... or creating my own repositories!.
    ***
    Now after I have been make the same steps (using apache-ant-1.9.4 and jdk1.7.0_55) , I obtained the home page.
    But when I logged In using username and password (admin, admin ) or (krisv, krisv) or ... , It opened but :
    Once I tried to show the process evaluation.bpmn2, or any other process I couldn't show it.
    It's the first time when I encounter like this case!; before, it worked very well !!!.
    ***
    When I googled I found this link: https://bugzilla.redhat.com/show_bug.cgi?id=983347 ; it's about jBPM-6.0.0
    ***
    Knowing that I'm now working with jBPM-6.0.1 and I didn't parse a '\' somewhere.
    Have you please any suggestions to resolve this error ?!.
    Below is the file : server.log


    Thanks at all for your help.

    ReplyDelete
    Replies
    1. What happens when you try to open your process in the UI? Note that there is a bug with the latest version of Chrome, which browser are you using?

      Delete
  11. This is a part of the file server.log :


    20:03:22,886 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jbpm-console.war"
    20:03:22,886 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "dashboard-builder.war"
    20:07:28,446 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'type' to 'kjar'.
    20:07:28,460 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'drools.dateformat' to 'dd-MMM-yyyy'.
    20:07:28,474 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'drools.defaultlanguage' to 'en'.
    20:07:28,487 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'rule-modeller-onlyShowDSLStatements' to 'false'.
    20:07:28,503 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'designer.context' to 'designer'.
    20:07:28,542 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'drools.defaultcountry' to 'US'.
    20:07:28,564 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'drools.datetimeformat' to 'dd-MMM-yyyy hh:mm:ss'.
    20:07:28,581 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'build.enable-incremental' to 'true'.
    20:07:28,602 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (http-localhost-127.0.0.1-8080-2) Setting preference 'designer.profile' to 'jbpm'.
    20:07:33,885 INFO [com.ning.http.client.providers.netty.NettyAsyncHttpProvider] (pool-19-thread-1) Number of application's worked threads is 8
    20:07:36,424 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost-127.0.0.1-8080-2) KieModule was added:MemoryKieModule[ ReleaseId=mortgages:mortgages:0.0.1]
    20:07:36,764 INFO [com.ning.http.client.providers.netty.NettyAsyncHttpProvider] (pool-21-thread-1) Number of application's worked threads is 8
    20:07:46,416 INFO [com.ning.http.client.providers.netty.NettyAsyncHttpProvider] (pool-23-thread-1) Number of application's worked threads is 8
    20:07:46,841 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) line 1:50 no viable alternative at character '\'

    20:07:46,844 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) line 1:111 no viable alternative at character '\'

    20:07:47,002 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost-127.0.0.1-8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.jbpm:HR:1.0]
    20:07:47,167 INFO [com.ning.http.client.providers.netty.NettyAsyncHttpProvider] (pool-25-thread-1) Number of application's worked threads is 8
    20:07:50,961 INFO [org.jbpm.designer.server.EditorHandler] (http-localhost-127.0.0.1-8080-2) Performing diagram information pre-processing steps.
    20:07:51,411 INFO [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (org.uberfire.backend.server.IOWatchServiceNonDotImpl(WatchService{FileSystem=git://localhost:9418/jbpm-playground
    ssh://localhost:8001/jbpm-playground})) Incremental build request received for: default://master@jbpm-playground/HR/global/themes.json (added).

    ReplyDelete
  12. Thanks Sir,
    It's solved the.
    It's a problem of browser !!!!.

    ReplyDelete
  13. I am integration JBPM on an existing JEE6 web application. Just like practised on this example https://github.com/jsvitak/jbpm-6-examples/tree/master/rewards-basic, I try to wire up the runtime manager and load my dedicated process definition. From the example you can see how he ties in a dummy user group callback. My environment tries to accomplish identity management through LDAP on our company AD. For this I utilized the LDAPUserCallBackImpl class instead of the RewardsUserGroupCallback from the example. My question, how and when are the AD user groups and users tied in on the user tasks on the process definition, I assume that happens through the actorId and GroupId attributes. Many thanks in advance Rob

    ReplyDelete
  14. I get this error while installing

    BUILD FAILED
    D:\jbpm-installer\build.xml:370: The following error occurred while executing this line:
    D:\jbpm-installer\build.xml:378: Error while expanding D:\jbpm-installer\lib\eclipse-java-kepler-R-win32.zip
    java.util.zip.ZipException: archive is not a ZIP archive
    at org.apache.tools.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:771)
    at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:707)
    at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:452)
    at org.apache.tools.zip.ZipFile.(ZipFile.java:214)
    at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:168)
    at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    ReplyDelete
    Replies
    1. The download might have failed, could you try deleting the eclipse-java-kepler-R-win32.zip file in jbpm-installer/lib and rerun ant install.demo?

      Delete
  15. Hello Sir,


    I'm trying to create a process within KIE-WB.
    I used this tutorial http://people.redhat.com/kverlaen/jbpm6F-installer-console.swf,
    once I clicked on Tasks>Tasks List: I found the task that I created before!.
    -->So it's OK !.
    Now, My reference is: http://www.youtube.com/watch?v=TM9cuL_Mfnk
    I created a task as described on this tutorial, but I didn't find any task in Tasks>Tasks List.
    Knowing that after every substep in this tutorial, I recieve a successful message.
    I couldn't know what's missing ?!.
    Please help !.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Please don't use this blog to answer any kind of user question, we have a jBPM user forum for that.

      Delete
    3. Sorry Sir Kris Verlaenen, I deleted it.

      Delete
  16. Hi Kris,

    I just installed jbpm-5.4.0.Final-installer-full version and tried to execute one Simple Hello World example but failed. The error shows as:-
    org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.compiler.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.compiler.rule.builder.dialect.mvel.MVELDialectConfiguration'
    at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:321)
    at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:307)
    at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:192)
    at org.drools.compiler.PackageBuilderConfiguration.(PackageBuilderConfiguration.java:170)
    at org.drools.compiler.PackageBuilder.(PackageBuilder.java:300)
    at org.drools.compiler.PackageBuilder.(PackageBuilder.java:228)
    at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
    at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)
    at org.jbpm.test.JbpmJUnitTestCase.createKnowledgeBase(JbpmJUnitTestCase.java:178)
    at org.jbpm.test.JbpmJUnitTestCase.createKnowledgeSession(JbpmJUnitTestCase.java:276)
    at com.sample.ProcessTest.testProcess(ProcessTest.java:15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.jbpm.test.KnowledgeSessionCleanup$1.evaluate(KnowledgeSessionCleanup.java:28)
    at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)

    Could you please help me out.Thanks in advance!!

    ReplyDelete
    Replies
    1. Please use the jBPM forum for generic questions.

      It seems you might be missing the mvel jar in your classpath, could you check the jBPM library to see it's in there?

      Delete
  17. Hi Kris,

    I am using jBPM 6, I am trying to persistence with Oracle DB, I am wondering if you have a document for this? I have been trying to set it up but haven't succeeded. I went through a few websites but don't find any page helpful.

    ReplyDelete
    Replies
    1. The jbpm-console? Or simply an embedded engine?
      Following link might help:
      http://docs.jboss.org/jbpm/v6.0.1/userguide/jBPMInstaller.html#d0e938

      Delete
  18. hi kris,

    I am trying to install JBPM 6 with KIE Workbench inorder to write business rule. I am new to this field. I am facing problem when i try to give ant start.demo


    D:\Softwares\jbpm-6.1.0.Final-installer-full\jbpm-installer>ant start.demo
    Buildfile: D:\Softwares\jbpm-6.1.0.Final-installer-full\jbpm-installer\build.xml


    start.h2.check:
    [echo] Checking if h2 db should be started ...

    start.h2:

    start.jboss:

    BUILD FAILED
    D:\Softwares\jbpm-6.1.0.Final-installer-full\jbpm-installer\build.xml:508: JBoss
    application server did not start within 5 minutes

    Total time: 25 minutes 22 seconds



    Can u pls help??

    i hav given below server log

    16:23:31,604 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."jbpm-console.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".PARSE: Failed to process phase PARSE of deployment "jbpm-console.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
    Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found
    at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:447) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:273)
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageDrivenBeanMetaData(MessageDrivenComponentDescriptionFactory.java:244)
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processBeanMetaData(MessageDrivenComponentDescriptionFactory.java:88)
    at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processBeanMetaData(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:65)
    at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.processDeploymentDescriptor(AbstractDeploymentUnitProcessor.java:143)
    at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:84)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    ... 5 more

    ReplyDelete
    Replies
    1. The exception seems to indicate that the server wasn't started with the standalone-full profile, which is required as the remote API requires some of the services that are only started in that profile (jboss.ejb.default-resource-adapter-name-service).

      This should happen automatically though:
      https://github.com/droolsjbpm/jbpm/blob/6.1.0.Final/jbpm-installer/build.xml#L491

      Did you customize the build script yourself? Could you try to start the server from command prompt yourself (adding the options as defined in the link above)?

      Delete
  19. Hi All,

    I see the default database is H2, i want to use mysql

    How can i achieve this,

    Regards,
    Vijay

    ReplyDelete
  20. Take a look at the jBPM installer chapter, it contains a separate section on how to reconfigure the jbpm-installer to a different database. Mysql is one of the examples:
    http://docs.jboss.org/jbpm/v6.2/userguide/jBPMInstaller.html#d0e950

    ReplyDelete
  21. Hi All,
    Please upload some tutorial about how to make a workflow in KIE workbench and how to handle the workflow i.e. start process, stop process and manipulate it from java project created in eclispe using REST api. Please give some details about it and it will be good if someone can describe how to do it from scratch. We need it very badly dear !! Please help us..

    ReplyDelete
  22. I have one scenario,

    I want to create a "order request process" in jBPM. In that process three roles are present which will perform the action.

    1) Clients

    2) Vendors

    3) Delivery People

    In Process Three lanes are present. Client,Vendor and Delivery. The client will be start the process. suppose I created the process in KIE work bench/ Eclipse and auto-generated the form.

    Here is the main problem, The vendor and delivery person user is present in organization. SO that they will log in and take a appropriate action. But the client is public user means it will be any one out side the organization. To access a jBPM form client must be authorized.

    So can you give solution so that outside organization person able to start process using auto-generated process form or using custom form ?

    ReplyDelete
  23. Hi Kris,
    I am using the RemoteRuntimeEngineFactory to make rest calls for task operations.

    I have added two users using the "addUser.bat" and defined roles in "roles.properties". When I try to invoke the build the engine by using the newly created user id and password, I get 403 forbidden error.

    Can you please help me?

    ReplyDelete
    Replies
    1. I was able to figure out the issue. In roles.properties I had to add the "rest-all" role next to the newly created user. But not sure what is the intent of this. If possible can you please help me understand the need of this?

      Delete
    2. This is related to a new feature in 6.3: there are additional restrictions on using the remote API (as once you have access to this, it is in general very powerful), so the default "analyst" or "developer" roles are no longer sufficient, see https://issues.jboss.org/browse/JBPM-4741

      Delete
    3. Thanks a lot Kris!! Are there any documentation to look out for to understand the additional restrictions?

      Delete
  24. Hi Kris,

    I am designing a workflow that has REST service task. I have specified the URL as http://localhost:8080/abcService/perform with the Content-Type as application/json.

    When I start the process, I get "ProtocolException: Target host is not specified" exception.

    Below is the stacktrace.
    Caused by: org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) [httpclient-4.3.6.jar:4.3.6]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) [httpclient-4.3.6.jar:4.3.6]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) [httpclient-4.3.6.jar:4.3.6]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) [httpclient-4.3.6.jar:4.3.6]
    at org.jbpm.process.workitem.rest.RESTWorkItemHandler.doRequestWithAuthorization(RESTWorkItemHandler.java:401) [jbpm-workitems-6.3.0.Final.jar:6.3.0.Final]
    ... 85 more
    Caused by: org.apache.http.ProtocolException: Target host is not specified
    at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:69) [httpclient-4.3.6.jar:4.3.6]
    at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:124) [httpclient-4.3.6.jar:4.3.6]
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:183) [httpclient-4.3.6.jar:4.3.6]
    ... 89 more

    Am I doing anything wrong, can you please help?

    ReplyDelete
    Replies
    1. Some more information on the environment
      I am using JBPM 6.3 and the REST service is also deployed on Wildfly server

      Delete
    2. The issue seems to be with URL encoding. The URL is not getting decoded

      Delete
  25. Hello... I am new to jBPM and JAVA... I want to use mySQL db and although i do all the steps in your guide i cannot deploy the jbpm-console.war.
    I get the error "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jbpm-console.jbpm-console.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]} "

    the persistence xml of the jbpm-console.war is ok.
    Please help me...

    ReplyDelete
  26. Hi Kris,

    I am trying to use JBPM 6.3.0 as a module in JBoss EAP 6.1
    I have configured MySQL and loading the persistence.xml from the war.
    From your other posts I have got the modules from http://repository.jboss.org/nexus/content/groups/public/org/kie/kie-eap-distributions-bpms-layer/
    Defined the global-modules in standalone.xml

    But I get ClassNotFoundException for org.kie.api.task.UserGroupCallBack during
    deployment.

    Can you please help me?

    ReplyDelete
  27. Hi Kris,

    I am newbie in JBPM, keen to learn and explore about the same. I have installed all the required services. Everything is smooth, wildfly started withour any error. Even i'm able to access the URL of jbpm console. Problem is unable to login into the application. I tried with all the users/passwords in the configuration files. I added users/googled but no luck. I got stuck at this point. Can you please advise me how to can i resolve this issue and proceed further.
    Using :jbpm-6.2.0.Final-installer-full, JDK6, Ant1.9.6
    Please help.
    Thanks,
    Sreekanth

    ReplyDelete
  28. Hi Kris,

    I installed JBPM(jbpm-6.4.0.Final-installer-full) it gor installed successfully.Now i started demo with command "ant start.demo" .Command successfully executed with output message:
    start.h2.check:
    [echo] Checking if h2 db should be started ...

    start.h2:

    start.jboss:

    start.eclipse:

    start.demo:

    BUILD SUCCESSFUL.
    After this eclipse started .But my problem is with starting the jbpm console page (http://localhost:8080/jbpm-console/). but the jboss server launching successfully in location (http://localhost:8080/jbpm-console/) .
    Plaese help.



    Thanks and regard,

    ReplyDelete
  29. Dear Kris,
    after unzipping the file, the command "ant install.demo" as successful, but the server did not start before 5 min. I even changed the time out to 10 min and port number to 8081. Yet it doesn't work. When i tried using bpm installer, i got the warning that the log file doesn't exist. There is no log file in the standalone folder. Can u please help me with the same?

    ReplyDelete
  30. Dear Kris,
    after unzipping the file, the command "ant install.demo" as successful, but the server did not start before 5 min. I even changed the time out to 10 min and port number to 8081. Yet it doesn't work. When i tried using bpm installer, i got the warning that the log file doesn't exist. There is no log file in the standalone folder. Can u please help me with the same?

    ReplyDelete
  31. I have updated the db to point to oracle, I am getting jbpm console but authentication not working .. admin/admin, krisv/krisv none of them working

    ReplyDelete
  32. I have updated the db to point to oracle, I am getting jbpm console but authentication not working .. admin/admin, krisv/krisv none of them working

    ReplyDelete
  33. Thanks a lot for sharing this amazing knowledge with us. This site is fantastic. I always find great knowledge from it. Cloud Workflow Software

    ReplyDelete
  34. Awesome post….Thanks for sharing this awesome article
    online loan ke bare me

    ReplyDelete