The problem is that BPMN2 specification requires the variables to be defined.<div>What you will need to do is to modify Designer to automatically create the required variables according to the IO specification of the tasks you have. Unfortunately this is not as easy as it sounds ;).</div>

<div>Designer keeps a representation of the process in JSON format. That JSON is then converted into BPMN2 when it is saved. When you open a process Designer first converts it from BPMN2 to JSNO back again. </div><div>You will need to tweak the Marshalling/Unmarshalling process..</div>

<div>The classes in charge of this are:  org/jbpm/designer/bpmn2/impl/Bpmn2JsonMarshaller.java and java/org/jbpm/designer/bpmn2/impl/Bpmn2JsonUnmarshaller.java<br clear="all"><br>@Tiho, do you see a better solution?</div>

<div><br></div><div>Best Regards,<br><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 5:10 AM, Jean-Jacques Borie <span dir="ltr">&lt;<a href="mailto:jean-jacques.borie@bluebe.com" target="_blank">jean-jacques.borie@bluebe.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to add that we plan to use work item definition file to declare parameters of work item and we don&#39;t want to do it again on the workflow.<span class="HOEnZb"><font color="#888888"><br>

<br>Jean-Jacques</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 10:06 AM, Jean-Jacques Borie <span dir="ltr">&lt;<a href="mailto:jean-jacques.borie@bluebe.com" target="_blank">jean-jacques.borie@bluebe.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br><br>I want to simplify Oryx designer in order to don&#39;t have to map every variables with input/output of task.<br>


<br>I want to remove the need of declaring global variable and the mapping with parameter of task.<br>
<br>When you have lots of workflow, it&#39;s start to be very annoying.<br><br>I&#39;m thinking of moving this declaration of mapping to do it at runtime.<br><br>Like having a spring configuration file to declare all variables needed for a series of workflow.<br>



<br>And next do the mapping of variable by IOC with work item or something like that.<br><br>I want to keep the scope variable between process and work item.<br><br>I want to make easier the work of people doing the workflow in order to give the tool for non developer.<br>



<br>Any idea ?<br><br>Thanks<span><font color="#888888"><br>Jean-Jacques Borie<br>
</font></span></blockquote></div><br>
</div></div><br>_______________________________________________<br>
jbpm-dev mailing list<br>
<a href="mailto:jbpm-dev@lists.jboss.org">jbpm-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbpm-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbpm-dev</a><br>
<br></blockquote></div><br></div>