on 10-11-2006 7:21 PM
Hi Everyone,
I am working on a BPm scenario, where the data which I get in BPM is of the format:
<Batch>
<DataBatch parent_reference = "3232" child_reference = "45" schema_Number = "03434211" status = "OK"><DataUnit>Format</DataUnit></DataBatch>
</Batch>
Where the bold part is the XML string inserted into Batch.
Now the issue is I need to check the attribute 'status' of DataBatch. If status is 'Ok' then the first branch of switch should execute or else the second branch should execute.
How can I check 'status' for it's value in switch condition.
Pls advice.
Cheers,
Ashish
Hi,
Yes you can use Status but with a proper XPATH of the status attribute.
Yor xpath would be
Batch/DataBatchparent/@status
Attributes can be accesed using @
thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Prakash,
As I understand I have to use ~ expression.
But can I use it as ~ "status = "Ok"".
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use the condition editor to give the XPATH of the attribute of a node.
http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
Thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.