Table of Contents

Search

  1. Preface
  2. Welcome to Informatica Process Developer
  3. Using Guide Developer for the First Time
  4. Getting Started with Informatica Process Developer
  5. About Interfaces Service References and Local WSDL
  6. Planning Your BPEL Process
  7. Participants
  8. Implementing a BPMN Task or Event in BPEL
  9. Implementing a BPMN Gateway or Control Flow
  10. Using Variables
  11. Attachments
  12. Using Links
  13. Data Manipulation
  14. Compensation
  15. Correlation
  16. What is Correlation
  17. What is a Correlation Set
  18. Creating Message Properties and Property Aliases
  19. Adding a Correlation Set
  20. Deleting a Correlation Set
  21. Adding Correlations to an Activity
  22. Rules for Declaring and Using Correlation Sets
  23. Correlation Sets and Engine-Managed Correlation
  24. Event Handling
  25. Fault Handling
  26. Simulating and Debugging
  27. Deploying Your Processes
  28. BPEL Unit Testing
  29. Creating POJO and XQuery Custom Functions
  30. Custom Service Interactions
  31. Process Exception Management
  32. Creating Reports for Process Server and Central
  33. Business Event Processing
  34. Process Central Forms and Configuration
  35. Building a Process with a System Service
  36. Human Tasks
  37. BPEL Faults and Reports

Designer

Designer

Copy Operation with Ignore Missing From Data Attribute

Copy Operation with Ignore Missing From Data Attribute

Select a FROM Type and then complete the Copy operation by making other appropriate selections. Add, edit, copy, delete, and reorganize Copy operations and scripts for the selected Assign activity.
Use
Ignore Missing From Data
to avoid a selection failure when copying data that can not exist in the source variable. If enabled for a copy operation, then any from-spec that selects zero elements, attributes, or text items causes the copy operation to have no effect. The to-spec for the copy operation is not evaluated and nothing changes in the target variable. If this attribute is not enabled, then the regular bpel:selectionFailure fault is raised if the from-spec selects zero items.
Consider the sample below where a customer record could contain special instructions for package delivery. If these instructions exist in the record then they should be copied over to the data sent to the shipping service. If they do not exist, then the default instruction of "NONE" remains in place.
Case 1: Optional Data is Present
Sample data before the copy operation
:
<CustomerRecord> <Id>100256</Id> <ShippingAddress>... </ShippingAddress> <DeliveryInstructions> Please leave at the back door </DeliveryInstructions> </CustomerRecord> <ShippingRecord> ... <SpecialHandling>NONE</SpecialHandling> </ShippingRecord>
Copy Operation:
<copy ignoreMissingFromData="yes"> <from>$customerRecord/DeliveryInstructions/text()</from> <to>$shippingRecord/SpecialHandling</to> </copy>
Result after copy operation:
<ShippingRecord> ... <SpecialHandling>Please leave at the back door </SpecialHandling> </ShippingRecord>
Case 2: Optional Data is Missing
Sample data before the copy operation:
<CustomerRecord> <Id>100256</Id> <ShippingAddress...>... </ShippingAddress> </CustomerRecord> <ShippingRecord> ... <SpecialHandling>NONE</SpecialHandling> </ShippingRecord>
Copy Operation:
<copy ignoreMissingFromData="yes"> <from>$customerRecord/DeliveryInstructions/text()</from> <to>$shippingRecord/SpecialHandling</to> </copy>
Result after copy operation:
<ShippingRecord> ... <SpecialHandling>NONE </SpecialHandling> </ShippingRecord>
For further details on selection failure settings, see:
Using the Process Developer Disable Selection Failure Fault Extension
.

0 COMMENTS

We’d like to hear from you!