Showing posts with label BPEL. Show all posts
Showing posts with label BPEL. Show all posts

Sunday, 24 December 2017

Weblogic User password Expired issue

Weblogic User password Expired

Step-1 : Check the user list and details which all are expired with the below query. 
select USERNAME,EXPIRY_DATE,LOCK_DATE,ACCOUNT_STATUS from dba_users;

Step-2 : Reset the password for the expired  users
alter user <username> identified by <new password>

Step-3 : To set make the limit of the password as unlimited  
alter profile DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

Friday, 30 May 2014

Pick Activity to Receive Multiple Response From Asynchronous BPEL Process

There are certain situations where BPEL process component should be capable of receiving multiple response from Asynchronous BPEL process.
Multiple onmessage branch of Pick activity can be used to receive multiple responses from service.

In below example it us described how to use Pick activity to receive multiple response from service.

To demonstrate we will create a BPEL process which invokes a Asynchronous BPEL process that returns two different response based on operation type(input parameter).

  • If operation type is "name" it returns first name
  • If operation type is "fullname" it returns first name and last name
To create this Asynchronous process click here.

Create a asynchronous BPEL process.


















































Open BPEL.xsd and modify the input elements.






















Open the BPEL process ,add Partenerlink and add the wsdl of AsynchNameDemo BPEL process created here.



















Add an Invoke activity and connect to this partenerlink.






















Add an assign activity above this invoke activity and assign input parameter for the AsyncNameService process.






















Now add an Pick activity below this Invoke activity. By default there will be a OnMessage branch. By clicking on the activity add one more OnMessage branch.

Click on first OnMessage,select your partnerlink "AsynchNameService" ,select the operation "processResponse" and add the variable too.





















Similarly for the second OnMessage branch handle the response from processFullNameResponse.





















Add and assign activity for each branch and assign the output variable the response received in respective onmessage response output variables.

Deploy the process and test.
  • For operation as "name"




























  • When operation name is "fullname"





































Asynchronous BPEL Process Returning Multiple Responses

There are certain scenarios in which an Asynchronous process can have multiple responses.

Lets assume an asynchronous process which accepts input parameters: firstName ,lastName and operations.
If operation is "name" it returns only First Name
If operation is "fullname" it returns  firstName and lastName.

As the returned values in both the cases are different number of items we need to use two different operations.

Create a new composite AsynchNameDemo and select composite with BPEL Process and click on Finish button.



















































Give the process name as BPELProcess and choose template as Asynchronous BPEL Process.























Open BPELProcess.xsd and edit it for appropriate request and response parameters.



























Open BPELProcess.wsdl file to add the appropriate changes.

  • Add a new meesage based on new response element processResponseFullName















  • Add a new operation in the callback porttype.











Now open BPEL process and add a switch activity.In the case branch add the condition that if operation='name' we will return only first name.
















Drag and bring the callbakClient inside case branch.Open the callbackClient and make assure that operation selected is processResponse. 

















Add as assign activity before this invoke and assign output parameter the first name as output.






















Delete the otherwise branch of switch activity and add one for condition branch and add the condition for operation as :"fullname".













Add a invoke activity in this case branch and name it as callbackClientwithFullName. Choose the operation type as processFullNameResponse and add an auto created input variable.






















Add an assign activity before this invoke activity and assign appropriate output variables for operation type "fullname".






















The complete process now looks like:-


























Now deploy the process and test.
  • When input is "name"



















  • When operation is "fullname"