Latest Posts


Show last 6 hrs - 24 hrs - 7 days

Forum tags


Top Posters

Last 30 days

  • Antoine (92)
  • talita.pezzi (22)
  • eduardo.lawisch (14)
  • sundaravadivel.n (14)
  • alfons.bataller.diaz (14)
  • ravinderjit.singh (13)
  • hellonico (9)
  • jose.mendoza (8)
  • marcia.martins (7)
  • dmitriy.fundak (6)

All time

  • Antoine (1407)
  • Shivanand (1189)
  • cshekhar (921)
  • psq (795)
  • jag (391)
  • metabyte (370)
  • arnaud (327)
  • jalateras (325)
  • dfrench (263)
  • venkaiah.k (198)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
Re:How Process works? (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How Process works?
#15833
gagan.virk (User)
Senior Boarder
User Offline Click here to see the profile of this user
How Process works? 2 Months, 3 Weeks ago Karma: 0  
I was going through "insert user" sample.Here's the link http://bpms.intalio.com/samples/fetching-values-from-an-array.html.Few things that I am not getting is how count is used with mappings?

Also,why attributes like definition, execution and count are declared in xsd file?I mean I am not sure about their functionality.

Can someone please shed light on this issue?I will appreciate it.Please bear in mind that I am new to BPMN and related technologies.

Thanks in advance.

Best Regards,
Gagan Virk
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/08/28 19:04 By gagan.virk.
  The administrator has disabled public write access.
#15840
dfrench (User)
Gold Boarder
User Offline Click here to see the profile of this user
Re:How Process works? 2 Months, 3 Weeks ago Karma: 8  
how count is used with mappings?
The process receives a set on names from the input (console) and inserts them one by one into the database. To do this, it needs to step through the set of nodes.

The BPEL code at the activity INVOKE is
Code: :

             <bpel:copy>               <bpel:from>$thisReceiveRequestMsg.body/tns:name[position()=$count]</bpel:from>               <bpel:to>$processQuery1RequestMsg.parameters/Process1:execute/Process1:parameters/Process1:Name</bpel:to>             </bpel:copy>


In this, the name is passed to a parameter in the sql statement that is to be executed. The name is selected from the set by the XPATH position function using the value of the global pool variable $count as the index.

$count is initially set to the number of names in the set in the ASSIGN activity using the XPATH count() function, and reduced by 1 in the DECREMENT activity.

why attributes like definition, execution and count are declared in xsd file?
This is to do with how Intalio communicated with services (and the database is a service). The process xsd is created by intalio designer. count in the reply definition is unrelated to the $count variable it is a standard return from SQL saying how many rows were affected by the statement executed.

There are other samples introducing the use of( MySQL) databases.

Note: It is probably not a good practice to update an external database in this way in a production environment as the state of the database and the process could get out of step if there is a system failure during the execution of the loop. Inserting rows in a single statement would be safer.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop