How to Create a Human Task from Oracle BPM Studio How to Configure the Outcome of a Human Task

Working with Services and References 15-1 15 Working with Services and References This chapter describes the different service and reference components that you can use in Oracle BPM. It describes how these components appear in the business catalog and how the components in the business catalog relate to the SOA composite that defines these services and references. It also describes how to customize these components to make them easier to understand and more appropriate for business analysts. This chapter includes the following sections: ■ Section 15.1, Introduction to Services and References ■ Section 15.2, Introduction to Service Adapters in Oracle BPM ■ Section 15.3, Introduction to Oracle Mediator in Oracle BPM ■ Section 15.4, Introduction to BPEL Processes in Oracle BPM ■ Section 15.5, Using Services in Oracle BPM ■ Section 15.6, Using References in Oracle BPM ■ Section 15.7, Customizing Services and References

15.1 Introduction to Services and References

Some flow objects in Oracle BPM require you to define a service or a reference to implement them. You can define services and references in the SOA composite in your BPM project. The business catalog displays the services, components, and references that appear in the SOA composite. When you add a new component in the Exposed Services or External References areas in the composite, it automatically appears in the corresponding predefined module in the business catalog. The following SOA components appear as services or references in the business catalog: ■ SOA service adapters ■ SOA mediators ■ BPEL processes Note: When you define a web service to implement a service task, message events, or send and receive tasks, ensure that the operations it contains do not define arguments of XML types defined within a WSDL. The arguments in the operations in the web service must be primitive types or types defined within an XSD file. 15-2 Modeling and Implementation Guide for Oracle Business Process Management

15.1.1 Introduction to Services

Services are those components that you can use to implement certain activities and events in your BPMN process. The Services predefined module stores the components that display a service handle in the SOA Composite. You can use services to implement the following flow objects: ■ Service tasks ■ Message events ■ Send and receive tasks

15.1.2 Introduction to References

References are the interfaces that you can use to define the interface of your BPMN processes. The References predefined module stores the components that display a reference handle in the SOA composite. You can use references to define the process interface using the following flow objects: ■ Message events ■ Send and receive tasks

15.1.3 Introduction to Callbacks

If a service is asynchronous and contains a callback interface, then the component in the business catalog contains a callback inner component. The callback inner component groups all the callback operations in the service. After selecting the service component in the business catalog, you can view a list of the operations in the callback component in the Structure window. The implementation of message events and receive tasks configured to wait for a callback from the service only enable you to select an operation from the callback inner component of the corresponding service. Figure 15–1 shows a service with a callback interface in the business catalog.