J developer 11g components ppt

27
Tushar Varshney J DEVELOPER 11G COMPONENTS PPT

Transcript of J developer 11g components ppt

Page 1: J developer 11g components ppt

Tushar Varshney

J DEVELOPER 11G COMPONENTS PPT

Page 2: J developer 11g components ppt

ASSIGN ACTIVITY

This activity provides a method for data manipulation, such as copying the contents of one variable to another. Copy operations enable you to transfer information between variables, expressions, endpoints, and other elements.shows the Copy Rules tab of the Assign dialog for BPEL 1.1. You drag the source node to the target node to create a BPEL copy rule from the source to the target node. This action creates a line that connects the source and target types. The copy rule is displayed in the From and To sections at the bottom of the dialog.

Page 3: J developer 11g components ppt

The Select Insertion Mode list above the source node section enables you to insert the next copy rule you create either after or before the rule selected at the bottom of the dialog.Icons display above the target node that enable you to perform the following tasks (from left to right) on target nodes.Expression icon: Drag this icon to a target node to invoke the Expression Builder dialog for assigning an XPath expression to that node.

Literal (BPEL 2.0 specification) icon or XML Fragment (BPEL 1.1 specification) icon: Drag this icon to a target node to invoke a dialog for assigning a literal (if the BPEL project supports the BPEL 2.0 specification) or XML fragment (if the BPEL project supports the BPEL 1.1 specification) to that target node.

Remove icon: Drag this icon to a target node to create a bpelx:remove extension rule.Rename icon: Drag this icon to rename a target node. This adds a bpelx:rename extension rule with an element To attribute.

Recast icon: Drag this icon to recast a target node. This adds a bpelx:rename extension rule with a typecast To attribute. This results in an xsi:type attribute in the XML output.You can also change a selected copy rule to a bpelx extension type (bpelx:copyList, bpelx:insertAfter, bpelx:insertBefore, or bpelx: append).The method of selection differs between BPEL 1.1 and BPEL 2.0.

Page 4: J developer 11g components ppt

 Assert ActivityThis activity enables you to perform an assertion on a

specified expression.This is a standalone activity in which to specify assertions. You can also specify assertions from the Assertions tab in invoke activities, receive activities, and the on Message branch of pick and scope activities.

Assert Dialog

Assert Dialog

Page 5: J developer 11g components ppt

 Bind Entity Activity

This activity enables you to select the entity variable to act as the data handle to access and plug in different data provider service technologies.The entity variable can be used with an Oracle Application Development Framework (ADF) Business Component data provider service using service data object (SDO)-based data. The entity variable enables you to specify BPEL data operations to be performed by an underlying data provider service. The data provider service performs the data operations in a data store behind the scenes and without use of other data store-related features provided by Oracle BPEL Process Manager (for example, the database adapter). This action enhances Oracle BPEL Process Manager runtime performance and incorporates native features of the underlying data provider service during compilation and runtime.

Page 6: J developer 11g components ppt

 Compensate Activity

This activity invokes compensation on an inner scope activity that has successfully completed. This activity can be invoked only from within a fault handler or another compensation handler. Compensation occurs when a process cannot complete several operations after completing others. The process must return and undo the previously completed operations. For example, assume a process is designed to book a rental car, a hotel, and a flight. The process books the car and the hotel, but cannot book a flight for the correct day. In this case, the process performs compensation by unbooking the car and the hotel. The compensation handler is invoked with the compensate activity, which names the scope on which the compensation handler is to be invoked.Click the General tab to provide the activity with a meaningful name.Select the scope activity on which the compensation handler is to be invoked.

Page 7: J developer 11g components ppt

Compensate Dialog

Page 8: J developer 11g components ppt

Compensate Scope Activity

This activity enables you to start compensation on a specified inner scope that has already completed successfully. This activity must only be used from within a fault handler, another compensation handler, or a termination handler.

Page 9: J developer 11g components ppt

Create Entity Activity

This activity enables you to create an entity variable. The entity variable can be used with an Oracle ADF Business Component data provider service using SDO-based data.

Page 10: J developer 11g components ppt

Email Activity

This activity enables you to send an email notification about an event.For example, an online shopping business process of an online bookstore sends a courtesy email message to you after the items are shipped. The business process calls the notification service with your user ID and notification message. The notification service gets the email address from Oracle Internet Directory.

Email Dialog

Page 11: J developer 11g components ppt

 Flow Activity

This activity enables you to specify one or more activities to be performed concurrently. A flow activity completes when all activities in the flow have finished processing. Completion of a flow activity includes the possibility that it can be skipped if its enabling condition is false.For example, assume you use a flow activity to enable two loan offer providers (United Loan service and Star Loan service) to start in parallel. In this case, the flow activity contains two parallel activities – the sequence to invoke the United Loan service and the sequence to invoke the Star Loan service. Each service can take an arbitrary amount of time to complete their loan processes.Figure A-14 shows an initial flow activity with its two panels for parallel processing. You drag activities into both panels to create parallel processing. When complete, a flow activity looks like that shown

Page 12: J developer 11g components ppt

 for Each Activity

This activity enables you to process multiple sets of activities sequentially or in parallel. The for Each activity executes its contained (child) scope activity exactly N+1 times, where N equals the final counter value minus the starting counter value that you specify in the Counter Values tab of the For Each dialog. While other structured activities such as a flow activity can have any type of activity as its contained activity, the for Each activity can only use a scope activity.

Page 13: J developer 11g components ppt

 If ActivityThis activity enables you to define conditional behavior for specific activities to decide between two or more branches. Only one activity is selected for execution from a set of branches.

If Activity

Page 14: J developer 11g components ppt

Invoke Activity

This activity enables you to specify an operation you want to invoke for the service (identified by its partner link). The operation can be one-way or request-response on a port provided by the service. You can also automatically create variables in an invoke activity. An invoke activity invokes a synchronous web service or initiates an asynchronous web service.The invoke activity opens a port in the process to send and receive data. It uses this port to submit required data and receive a response. For synchronous callbacks, only one port is needed for both the send and the receive functions.The invoke activity supports the bpelx:inputProperty and bpelx:outputProperty that facilitate the passing of properties through the SOAP header and the obtaining of SOA runtime system properties for useful information such as the tracking.compositeInstanceId and tracking.conversationId.

Figure A-20 shows the Invoke dialog in BPEL 1.1. You can perform the following tasks:Provide the activity with a meaningful name.Select the partner link for which to specify an operation.Select the operation to be performed.Automatically create a variable or select an existing variable in which to transport the data (payload).

Page 15: J developer 11g components ppt

Invoke Dialog

Page 16: J developer 11g components ppt

Partner Link Activity

This service enables you to define the external services with which your process interacts. A partner link type characterizes the conversational relationship between two services by defining the roles played by each service in the conversation and specifying the port type provided by each service to receive messages within the conversation. For example, if you are creating a process to interact with a Credit Rating Service and two loan provider services (United Loan and Star Loan), you create partner links for all three services.. You provide the following details:A meaningful name for the service.The web services description language (WSDL) file of the external service.The actual service type (defined as Partner Link Type).The role of the service (defined as Partner Role).The role of the process requesting the service (defined as My Role).

Partner Link Activity

Page 17: J developer 11g components ppt

 Pick Activity

This activity waits for the occurrence of one event in a set of events and performs the activity associated with that event. The occurrence of the events is often mutually exclusive (the process either receives an acceptance or rejection message, but not both). If multiple events occur, the selection of the activity to perform depends on which event occurred first. If the events occur nearly simultaneously, there is a race and the choice of activity to be performed is dependent on both timing and implementation.The pick activity provides an On Message branch. When you double-click the On Message icon in BPEL 1.1,

 OnMessage Dialog

Page 18: J developer 11g components ppt

Reply Activity

This activity allows the process to send a message in reply to a message that was received through a receive activity. The combination of a receive activity and a reply activity forms a request-response operation on the WSDL port type for the process. the Reply dialog includes a Documentation tab and does not include a Skip Condition tab or Assertions tab.

 Reply Dialog

Page 19: J developer 11g components ppt

 Rethrow Activity

This activity enables you to rethrow a fault originally captured by the immediately enclosing fault handler.

Page 20: J developer 11g components ppt

 Scope Activity

This activity consists of a collection of nested activities that can have their own local variables, fault handlers, compensation handlers, and so on. A scope activity is analogous to a { } block in a programming language.Each scope has a primary activity that defines its behavior. The primary activity can be a complex structured activity, with many nested activities within it to arbitrary depth. The scope is shared by all the nested activities.

Page 21: J developer 11g components ppt

shows the Add Catch icon inside a scope activity. shows the catch activity area that appears when you click the Add Catch icon. Within the area defined as Drop Activity Here, you drag additional activities to create fault handling logic to catch and manage exceptions.For example, a client provides a social security number to a Credit Rating service when applying for a loan. This number is used to perform a credit check. If a bad credit history is identified or the social security number is identified as invalid, an assign activity inside the catch activity notifies the client of the loan offer rejection. The entire loan application process is terminated with a terminate activity.Figure A-34 Creating a Catch Branch

Page 22: J developer 11g components ppt

 Catch Activity Icon

Sequence ActivityThis activity enables you to define a collection of activities to be performed in sequential order. For example, you may want the following activities performed in a specific order:A customer request is received in a receive activity.The request is processed inside a flow activity that enables concurrent behavior.A reply message with the final approval status of the request is sent back to the customer in a reply activity.A sequence activity makes the assumption that the request can be processed in a reasonable amount of time, justifying the requirement that the invoker wait for a synchronous response (because this service is offered as a request-response operation).When this assumption cannot be made, it is better to define the customer interaction as a pair of asynchronous message exchanges.When you double-click the Sequence icon, the activity area shown in Figure A-36 appears. Drag and define appropriate activities inside the sequence activity.

Sequence Activity

Sequence Activity

Sequence Activity

Sequence Activity

 Sequence Activity

Page 23: J developer 11g components ppt

Switch Activity

This activity consists of an ordered list of one or more conditional branches defined in a case branch, followed optionally by an otherwise branch. The branches are considered in the order in which they appear. The first branch whose condition is true is taken and provides the activity performed for the switch. If no branch with a condition is taken, then the otherwise branch is taken. If the otherwise branch is not explicitly specified, then an otherwise branch with an empty activity is assumed to be available. The switch activity is complete when the activity of the selected branch completes.A switch activity differs in functionality from a flow activity. For example, a flow activity enables a process to gather two loan offers at the same time, but does not compare their values. To compare and make decisions on the values of the two offers, a switch activity is used. The first branch is executed if a defined condition (inside the case branch) is met. If it is not met, the otherwise branch is executed.

Page 24: J developer 11g components ppt

 Terminate Activity

A terminate activity enables you to end the tasks of an activity (for example, the fault handling tasks in a catch branch). For example, if a client's bad credit history is identified or a social security number is identified as invalid, a loan application process is terminated, and the client's loan application document is never submitted to the service loan providers.

Page 25: J developer 11g components ppt

Validate Activity

This activity enables you to validate variables in the list. The variables are validated against their XML schema.

Page 26: J developer 11g components ppt

Transform Activity

This activity enables you to create a transformation that maps source elements to target elements (for example, incoming purchase order data into outgoing purchase order acknowledgment data).Figure A-42 shows the Transform dialog in BPEL 1.1. This dialog enables you to perform the following tasks:Define the source and target variables and parts to map.Specify the transformation mapper file.Click the second icon (the Add icon) to the right of the Mapper File field to access the XSLT Mapper for creating a new XSL file for graphically mapping source and target elements. Click the Edit icon (third icon) to edit an existing XSL file.

Page 27: J developer 11g components ppt

Wait Activity

This activity allows a process to specify a delay for a certain period or until a certain deadline is reached. A typical use of this activity is to invoke an operation at a certain time. This activity enables you to wait for a given time period or until a certain time has passed. Exactly one of the expiration criteria must be specified.

Wait Dialog