1 Reply Latest reply on Aug 17, 2005 7:13 PM by ramiro ortiz

    JBPM Performance

    ramiro ortiz Newbie

      We are developing a payroll application and we designed our workflow in order to calculate the employees' discounts and incomes.
      Our workflow has the following structure:



      <variable name='map' mapped-name='map'>





      <variable name='map' mapped-name='map'>





      <variable name='map' mapped-name='map'>


      ...

      In every action we are recovering a HashMap using the getVariable method. This Hashmap has a structure containing the discounts and incomes.
      After a discount or income is calculated we save the Hashmap with the new Income or discount and then we are calling the setVariable method with the new HashMap.

      We are experiencing performance problems when we get the HashMap and we save the HashMap.

      Is there any special consideration in order to save data, or get data containing complex structures like a HashMap?


      Thanks!

        • 1. Re: JBPM Performance
          ramiro ortiz Newbie

          Sorry. The Process structure didn't appear well.
          The process structure is as follows:

           <node name='Income1' >
           <action name='Income1' class='payroll.actions.Income1'/>
           <variable name='map' mapped-name='map'></variable>
           <transition to='Income2' />
           </node>
          
           <node name='Income2' >
           <action name='Income2' class='payroll.actions.Income2'/>
           <variable name='map' mapped-name='map'></variable>
           <transition to='Discount1' />
           </node>
          
           <node name='Discount1' >
           <action name='Discount1' class='payroll.actions.Discount1'/>
           <variable name='map' mapped-name='map'></variable>
           <transition to='Discount2' />
           </node>