Posts

Showing posts from June, 2017

MySQL Database basic administrative commands

Image
Hi folks, I am going to write some basic MySQL administrative commands in this post. So let's get started- Create New User in MySQL Database Login to MySQL with super user preferably root or user with full rights Execute below command CREATE USER 'username'@'hostname' IDENTIFIED BY 'YourPassword'; Example:  CREATE USER 'fmsuser'@'192.168.0.121' IDENTIFIED BY 'Pass1@210617'; Drop User in MySQL Database Login to MySQL with super user preferably root or user with full rights. Execute below command DROP USER 'username'@'hostname' Example:  DROP USER 'fmsuser'@'192.168.0.121' List All Users in MySQL Database  Login to MySQL with super user preferably root or user with full rights. Execute below command SELECT * FROM mysql.user Create New MySQL Database Login to MySQL with super user preferably root or user with full rights. Execute below command CREATE DATABASE newDBName DEFAULT CHARAC

Oracle SOA- Subscribing to Human Task Events

Image
In this post I,ll showcase how can a SOA composite application can subscribe to a human task event. So let's get started- The functionality can be achieved by- a  Mediator Component or a BPEL Process Sample Use Case- Let's consider a scenario where I would like to send SMS/Email notifications whenever a human task is assigned to a user (typically onTaskAssigned event). Consideration- Our Weblogic server has been configured with smppdriver and is up and running. Please refer to this link   in case you are using smpp driver for the first time. For this tutorial, I have taken consideration of human task subscription using a BPEL process and same can be used for Mediator component based implementation I have used Oracle SOA Suite 11g in jDeveloper  11g & Weblogic Server 10.3.6 Implementation- In this implementation I have taken the scenario of SMS notification,however same can be used for email notifications as well. Step1- Create a MDS connection We need a creat

Oracle SOA BPEL inserting a new line character in XPath expression

Image
In my this post, I'll share the details how can you insert a new line character in your XPath expression during assignment (assign activity in BPEL). So let's get started- JDeveloper Version- 11g (11.1.1.7) Use case: Well, I had a use case when I had to send SMS notification and the SMS template was something like below: Now the problem was, BPEL XPath expression builder just help me to do string concatenation and I was stuck how to insert a new line char or to give a line break. Since I was using BPEL1.1 and I have tried to add below chars to achieve the new line but did not worked for me: 
 \n 
 Finally I have got the character 
 that perfectly worked with BPEL2.0 but not with BPEL1.1. So my XPath expression was something like concat('Dear ',XXXX,',',' 
 ','Your request with request ID ',XXXX,' has rejected by ',XXXX,'.') [UPDATE-03Dec2019] I have got few responses wher

Oracle SOA BPEL access dynamic xml payload element using XPath

Image
In my this post, I'll showcase the scenario of accessing the XML elements for dynamic payload received. I am using Oracle SOA Suite 11g & BPEL 1.1, however same should work on higher versions also. So let's get started- Use case: I was given the below XML payload  Note that elements inside TargetEntity are dynamically generated at runtime. Corresponding XML schema is What we need to access To access the Value of  DataAttribute Name i.e.   district/ usr_circle/ Mobile etc. Solution Use XPath expression builder in your BPEL Process for assignment and use below code for the same: bpws:getVariableData('requestDetails','RequestData','/ns18:RequestData/ns18:TargetEntityData/ns18:TargetEntity/ns18:DataAttribute [@Name="NameAttribute"] /@Value') Here  NameAttribute refers to district/ usr_circle/ Mobile. So to access the value of attribute Name 'district', the XPath expression would be: bpws:getVariableDat