Hello,
I'm deploying a process definition with this code:
import java.util.List;
import org.jbpm.db.GraphSession;
import org.jbpm.db.JbpmSession;
import org.jbpm.db.JbpmSessionFactory;
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.graph.exe.Token;
public class despliegue {
static JbpmSessionFactory jbpmSessionFactory =
JbpmSessionFactory.buildJbpmSessionFactory();
/** Creates a new instance of despliegue */
public despliegue() {
}
public static void main(String args[]){
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
" <process-definition"+
" name='flujo_fac_elec'>"+
" <start-state name='est_inicio' >"+
" "+
" </start-state>"+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" "+
" <end-state name='fin'></end-state>"+
" </process-definition>"
);
// Let's open a new persistence session
JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession();
// ... and begin a transaction on the persistence session
jbpmSession.beginTransaction();
// Save the process definition in the database
jbpmSession
.getGraphSession()
.saveProcessDefinition(processDefinition);
// Commit the transaction
jbpmSession.commitTransaction();
// And close the jbpmSession.
jbpmSession.close();
but what's up with actions??? because, doesn't it's deployed on database?...
how save actions deployer process on eclipse...? insert actions on database?
classpath? if i use this code i must put class files on classpath??
thanks for any help or idea,
Ktdr
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920460#3920460
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920460
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user