<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
jbpm process instance save
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/arashbahal">arash norouz</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/568794#568794">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><table style="width: 652px; height: 34px;"><tbody><tr><td class="votecell" style=""><div class="vote"> </div></td><td class="postcell" style=""><div><div class="post-text"><p>Hi all </p><p>i am new to JBPM. i am using jbpm4.4 this is my basic example code:</p></div></div></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="prettyprint"><code>ProcessEngine processEngine = new Configuration()<br/>           .buildProcessEngine();<br/>      NewDeployment deployment=processEngine.getRepositoryService().createDeployment().addResourceFromClasspath("com/pardis/jpdl/test.jpdl.xml");<br/>      String deploymentId = deployment.deploy();<br/>      Map<String,Object> variables = new HashMap<String,Object>();<br/>      variables.put("customer", "John Doe");<br/>      variables.put("type", "Accident");<br/>      variables.put("amount", new Float(763.74));<br/>      ProcessInstance processInstance = processEngine.getExecutionService().startProcessInstanceByKey("iran",variables,"doops");<br/>processEngine.getExecutionService().signalExecutionById(processInstance.getId());<br/><br/></code>and this is my process definition:<br/><br/><pre class="prettyprint"><code><?xml version="1.0" encoding="UTF-8"?><br/><br/><process key="iran" name="test" xmlns="http://jbpm.org/4.4/jpdl"><br/>   <start g="388,85,48,48" name="start1"><br/>      <transition g="-49,-18" name="to state1" to="state1"/><br/>   </start><br/>   <end g="519,310,48,48" name="end1"/><br/>   <java class="test.TestAction" g="278,173,92,52" method="pr" name="java1"><br/>      <arg> <object expr="#{type}"/> </arg><br/>      <arg> <object expr="#{customer}"/> </arg><br/>      <arg> <object expr="#{amount}"/> </arg><br/>      <transition name="to state2" to="state2" g="-49,-18"/><br/>   </java><br/>   <state g="89,151,92,52" name="state1"><br/>      <transition g="-45,-18" name="to java1" to="java1"/><br/>   </state><br/>   <state name="state2" g="500,205,92,52"><br/>      <transition name="to end1" to="end1" g="-42,-18"/><br/>   </state><br/></process><br/><br/></code><p>i have a question about it:</p>
<ol>
<li>suppose that the execution of process is halted on some state, how  could i persist the execution and resume it again? i want to run a  process for multiple users and keep tracks of executions.</li>
</ol>
<p>i think that JBPM documentation is very poor! so could you suggest a useful resource to me? thanks in advance</p><br/></pre>
<br/></pre></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/568794#568794">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>