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

Sample Custom Function

Sample Custom Function

The following shows a sample custom function:
package com.acme.functions; import java.util.List; import org.activebpel.rt.bpel.function.AeFunction; import org.activebpel.rt.bpel.function.AeFunctionCallException; import org.activebpel.rt.bpel.function.AeFunctionContext; import org.activebpel.rt.bpel.function.AeFunctionUnit; import org.activebpel.rt.bpel.function.AeUnresolvableException; import org.activebpel.rt.bpel.function.IAeFunction; import org.activebpel.rt.bpel.function.IAeFunctionContext; import org.activebpel.rt.bpel.function.IAeFunctionExecutionContext; @AeFunctionContext(name = "AcmeContext", namespace = "http://acme.com/functions") public class GenericFunctionContext implements IAeFunctionContext { private IAeFunction echoFunction = new EchoFunction(); private IAeFunction companyNameFunction = new CompanyNameFunction(); @Override @AeFunctionUnit(prefix = "ac", display = "ACME", hoverText = "Acme company functions", functions = { @AeFunction(syntax = "${prefix}:echo(${caret})", display = "echo(param)", hoverText = "echo function that returns the given string"), @AeFunction(syntax = "${prefix}:companyName()", display = "companyName()", hoverText = "Returns company name") }) public IAeFunction getFunction(String aFunctionName) throws AeUnresolvableException { if (aFunctionName.equals("echo")) return echoFunction; else if (aFunctionName.equals("companyName")) return companyNameFunction; return null; } private class EchoFunction implements IAeFunction { @Override public Object call(IAeFunctionExecutionContext aContext, List aArgs) throws AeFunctionCallException { if (aArgs.size() == 1) return aArgs.get(0); return null; } } private class CompanyNameFunction implements IAeFunction { @Override public Object call(IAeFunctionExecutionContext arg0, List arg1) throws AeFunctionCallException { return "acme"; } } }

0 COMMENTS

We’d like to hear from you!