-
1. Re: Need help (jboss JBPM)
davidsan1001 Nov 19, 2005 6:34 PM (in response to tom_sri74)I'll take a shot at this.
1. Start your Jboss server to run under jbpm
#/jboss-4.0.3/bin/run.sh -c jbpm
2. In eclipse, highlight your par directory, right click to bring up the context menu, highlight (activate) the "Deploy Process Archive" option.
Dave -
2. Re: Need help (jboss JBPM)
tom_sri74 Nov 20, 2005 8:21 PM (in response to tom_sri74)Thanks for response. Could you please explain in detail. i did deploy process archive in elicipse after what should i do..
Need detail about par (where i will put jbpm-server, war, conf (where i will conf in database ) please mention in detail because i am a begginer i am working here without support that why i am very tired to get all of this. Please do needful. -
3. Re: Need help (jboss JBPM)
tom_sri74 Nov 21, 2005 8:08 PM (in response to tom_sri74)1. Finally i got how to deploy i got sar file and par file so i put those files in
jbpm-starters-kit-3.1-alpha --> jbpm-server --> server --> jbpm --> deploy
2. After that when i run the server using the command run -c jbpm
i check in localhost console the processdesign is not display
Could you please explain me.. did par should deploy in hypersonic database. if yes how please explain me step by step it will easy to implement it.
thanks
Srikanth -
4. Re: Need help (jboss JBPM)
aguizar Nov 22, 2005 5:39 PM (in response to tom_sri74)1. The JBoss server included in directory jbpm-server of the starters kit already contains the jBPM service. You might want to delete the unnecesary files.
2. The GPD deploys the process definition through the deploy servlet in the jBPM service. This service stores data in a Hypersonic in-process database.
The steps to follow are:
1) create a process definition in the GPD
2) start the JBoss jBPM server
3) deploy the process from Eclipse; you should see messages like these in the server console:16:29:16,093 DEBUG [LogFilter] request http://localhost:8080/jbpm/deploy
16:29:16,093 DEBUG [LogFilter] request parameter [archive]=file://C:\DOCUME~1\aguizar\LOCALS~1\Temp\loan-approval.par31049.tmp
16:29:16,109 DEBUG [PersistenceContext] beginning transaction
16:29:16,125 DEBUG [DeployServlet] deploying archive file://C:\DOCUME~1\aguizar\LOCALS~1\Temp\loan-approval.par31049.tmp
16:29:16,140 DEBUG [SchemaValidationHelper] activating schema validation...
16:29:16,171 DEBUG [FileDefinition] preparing file 'processimage.jpg' for storage in the database
16:29:16,171 DEBUG [FileDefinition] preparing file 'gpd.xml' for storage in the database
16:29:16,171 DEBUG [ProcessArchiveDeployer] starting transaction to deploy process ProcessDefinition(loan-approval)
16:29:16,234 DEBUG [ProcessArchiveDeployer] flushing...
16:29:16,265 DEBUG [ProcessArchiveDeployer] committing transaction to deploy process ProcessDefinition(loan-approval)
4) point your browser to http://localhost:8080/jbpm/; the jBPM web app login page should appear
5) log in using any identity; your process should appear in the table under Start New Process Execution
Hope this helps. I did this using GPD 3.0.3 and the Starters kit 3.1 alpha 1. -
5. Re: Need help (jboss JBPM)
tom_sri74 Nov 22, 2005 9:34 PM (in response to tom_sri74)Thank Alex it`s really help but one issue
I did deploy process through eclipse (before server is start)
and i check in browser http://localhost:8080/jbpm and able to see my process name in Start New Process Execution but there is no value in Start Process Link
This is my simple code
Processdefinition.xml
*********************
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"
name="hello5">
<start-state name="start">
Going to the first state!
</start-state>
<end-state name="end"></end-state>
About to finish!
</process-definition>
This is my HelloActionHandler.java
******************************
package com.jbay.action;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;
public class HelloActionHandler implements ActionHandler {
private static final long serialVersionUID = 1L;
/**
* The message member gets its value from the configuration in the
* processdefinition. The value is injected directly by the engine.
*/
String message;
/**
* A message process variable is assigned the value of the message
* member. The process variable is created if it doesn't exist yet.
*/
public void execute(ExecutionContext context) throws Exception {
context.getContextInstance().setVariable("message", message);
}
}
This is log in server
11:31:44,390 DEBUG [CommandExecutor] waiting for more messages
11:31:44,390 DEBUG [StaticNotifier] going to wait for (EXECUTE, java.lang.Object@4ba4d6)
11:31:45,968 DEBUG [LogFilter] request http://localhost:8080/jbpm/deploy
11:31:45,968 DEBUG [LogFilter] request parameter [archive]=file://C:\DOCUME~1\srikanth\LOCALS~1\Temp\hello5.par61513.tmp
11:31:45,968 DEBUG [PersistenceContext] beginning transaction
11:31:45,968 DEBUG [DeployServlet] deploying archive file://C:\DOCUME~1\srikanth\LOCALS~1\Temp\hello5.par61513.tmp
11:31:46,000 DEBUG [SchemaValidationHelper] activating schema validation...
11:31:46,046 DEBUG [FileDefinition] preparing file 'processimage.jpg' for storage in the database
11:31:46,046 DEBUG [FileDefinition] preparing file 'gpd.xml' for storage in the database
11:31:46,046 DEBUG [FileDefinition] preparing file 'classes/com/jbay/action/HelloActionHandler.class' for storage in the database
11:31:46,046 DEBUG [ProcessArchiveDeployer] starting transaction to deploy process ProcessDefinition(hello5)
11:31:46,062 DEBUG [ProcessArchiveDeployer] flushing...
11:31:46,078 DEBUG [ProcessArchiveDeployer] committing transaction to deploy process ProcessDefinition(hello5)
11:31:46,078 DEBUG [PersistenceContext] committing transaction
11:31:48,812 DEBUG [HibernateSessionFactoryInterceptor] fetching hibernate SessionFactory from JNDI 'java:/jbpm/SessionFactory'
Please tell me is any small code wrong. I need to create new process link for the above code in server but it`s not coming
Thanks & regards
Srikanth -
6. Re: Need help (jboss JBPM)
tom_sri74 Nov 23, 2005 3:43 AM (in response to tom_sri74)Hi,
I am getting error in serve saying that "Class Attribute must be declare in assignment"
ie
here the below whole my example code
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"
name="TaskTest">
<start-state name="start">
</start-state>
<end-state name="end"></end-state>
<task-node name="Index">
index
</task-node>
<task-node name="Account">
</task-node>
</process-definition>
but in i check in websale.par it`s doesnt declare class attribute in assignmnet tag but how it`s work, Could you please help me what is wrong in my code.
Thanks and regards
Srikanth -
7. Re: Need help (jboss JBPM)
kukeltje Nov 23, 2005 7:47 AM (in response to tom_sri74)please post your xml in code tags