我正在处理需要执行以下任务的预定序列:
call GetNew data service getting possible new xml data
if xml exists
with the xml data, get the ID and save it into a property
call UpdateStatus data service with the parameters ID and PROCESSING
call the ProcessOrder service passing the xml data
if the return is success
call the external SetStatus service with SUCCESS
otherwise
call the external SetStatus service with ERROR
call UpdateStatus data service again with the parameters ID and PROCESSING
otherwise
do nothing
为此,我构建了以下序列:
payload -- to build a GetNew request
callout -- to call the GetNew data service
property -- to save the ID from the possible new message
filter -- verify if the ID property exists
then
clone
payload -- to build a UpdateStatus PROCESSING request
callout -- call the UpdateStatus
xslt -- transform the XML from GetNew to the ProcessOrder
in
send -- to the ProcessOrder endpoint
out
property -- save the status of the ProcessOrder response
payload -- to build the SetStatus request
callout -- call the external SetStatus service with the status
payload -- to build a UpdateStatus PROCESSED request
callout -- call the UpdateStatus
else
drop
我想知道这是否是一个好习惯,或者我是否应该将其拆分为多个序列,或者通过发送替换标注,以及如何使用这种方法处理 SoapFaults 的最佳方法。
提前致谢。