Forum tags


Top Posters

Last 30 days

  • Antoine (95)
  • talita.pezzi (23)
  • eduardo.lawisch (14)
  • sundaravadivel.n (14)
  • alfons.bataller.diaz (14)
  • ravinderjit.singh (13)
  • hellonico (9)
  • jose.mendoza (8)
  • marcia.martins (7)
  • himar.rodriguez (6)

All time

  • Antoine (1410)
  • 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
suprocess fails to loop (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: suprocess fails to loop
#15541
wassan.younis (User)
Junior Boarder
User Offline Click here to see the profile of this user
suprocess fails to loop 3 Months, 1 Week ago Karma: 0  
Hello

I have designed a process with a looping subprocess that should at the end of each cycle set the value of a variable to a specific value then loop again. The process runs successfully on the first cycle, but is terminated at the end of the firsy cycle. I tried to change all the variables types to any simple type, and all the data coming from the forms have also the data type anytype, but i still get the same error and the process will not loop. I spent so much time trying tro fix this error but failed. Can any one please help me. I attached the project to this email.



Best,
Wassan
File Attachment:
File Name: TestLCCG2.zip
File Size: 107711
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#15596
ihabo01 (Admin)
Admin
User Offline Click here to see the profile of this user
Re:suprocess fails to loop 3 Months, 1 Week ago Karma: 5  
Hi younis,

So your subprocess does not loop because you have an error in one of the assignments.
You could have figured this out from the error thrown by the engine:

10:15:16,984 ERROR [SWITCH] Error while executing an XPath expression: ValidationException: Cannot convert string "" to a double
org.apache.ode.bpel.common.FaultException: Error while executing an XPath expression: ValidationException: Cannot convert string "" to a double

The engine says that you can not compare a string and a double.


Let me try to explain why you have the error: In the last gateway, you are trying to figure out whether the user checked the box continue or not. By comparing the double 1 with the value of the box.

The problem is when the user checks the box the value will take 1 , otherwise the check box will have no value.
hence when then the engine will compare 1 to nothing ( more precisely the string "") , it will throw an error.

To resolve this, you should compare the value of the check boxt with the string "1" ( not the double 1). In this case, even if the user does not check the box, the engine will be comparing strings and hence everything will work as expected.

The engine is weakly typed and even when you are trying to compare two different types, it will try to do the conversion. You just need to make sure that the conversion is always possible.

I hope that helps.

Best regards
 
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