cancel
Showing results for 
Search instead for 
Did you mean: 

Standard Loop BPMN activiti

nabilblk
Champ in-the-making
Champ in-the-making
Hi every one ,

I want to test the artifact standard loop .

Here is my technical process :



<userTask  name="Saisie Line Item" id="SaisieLineItem" activiti:form="com/xxxx/activiti/forms/remiseItem.form">
          <humanPerformer>
      <resourceAssignmentExpression>
               <formalExpression>kermit</formalExpression>
           </resourceAssignmentExpression>
      </humanPerformer>
            <standardLoopCharacteristics>
                <loopCondition xsi:type="tFormalExpression">${continue}</loopCondition>
            </standardLoopCharacteristics>
</userTask>
….
….


and the code for the form remiseItem.form is :

<h1>remise Item</h1>

<p>Line Item:
</p>
<p>
           <b>Remettant:</b> <input type="text" name="remettant" value="" />
</p>
<p>           
          <b>Nbre Cheques:</b>  <input type="text" name="nbrCheque" value="" />
</p>
<p>
          <b>Montant:</b>  <input type="text" name="montant" value="" />
</p>
<p>
          <b>Numero Remise:</b> <input type="text" name="NumRemise" value="" />
</p>
<p>
<b>Continue ?</b><br/>
<input type="radio" name="continue" value="true" /> Yes <br/>
<input type="radio" name="continue" value="false" checked="true"/> No <br/>
<input type="hidden" name="continue_type" value="Boolean"/>
</p>

When i run my process and explore the task , the Loop didn't work.

thanks for help
Nabil
10 REPLIES 10

jbarrez
Star Contributor
Star Contributor
Loops are not yet implemented in Activiti. So you'll need to work around it currently be remodeling your process with expressions on the sequence flow to do the loop yourself.

nabilblk
Champ in-the-making
Champ in-the-making
Thanks joram for your response .

Good luck , activiti is simply an amazing stuff.

jbarrez
Star Contributor
Star Contributor
I can't agree more 🙂

asbachb
Champ in-the-making
Champ in-the-making
May we create a JIRA-Task?!

jbarrez
Star Contributor
Star Contributor
Absolutely (you shouldn't even ask 😉 !

ibryildiz
Champ in-the-making
Champ in-the-making
Hi Joram,

I want to make a loop between 2 user and  the user can add new field like new comment when new sequence comes. But when i add new variable to form on properties tab, the process doesn't work, i got an value error. How can i do it?

rvashishth
Champ in-the-making
Champ in-the-making
Is it possible to create loops in activiti now, i am doing a product evaluation poc and my task is to get a list of users using java service task and then send mail to all users in the list. Please help to achieve above.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

try to use MultiInstance loop
http://www.activiti.org/userguide/#bpmnMultiInstance

Regards
Martin

pekour
Champ in-the-making
Champ in-the-making
Is there a way to set up the MultiInstance loop so that each iteration would be made in a separate database transaction (LUW)?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.