Update apex to 4.2 on OracleXE 11.2

Unpack apex to a directory( in my case is c:/oraclexe/apex)
1- go to cd c:/oraclexe/apex
2- sqlplus sys as sysdba
Enter the password for sys
The follow the following:
1- install apex by
SQL> @apexins SYSAUX SYSAUX TEMP /i/

2- upgrade img folder

SQL> @apxldimg.sql c:\oraclexe

3- removing prior installations

finding old installations

SELECT username
FROM dba_users
WHERE (username LIKE ‘FLOWS_%’ OR USERNAME LIKE ‘APEX_%’)
AND USERNAME NOT IN (
SELECT ‘FLOWS_FILES’
FROM DUAL
UNION
SELECT ‘APEX_PUBLIC_USER’ FROM DUAL
UNION
SELECT SCHEMA s
FROM dba_registry
WHERE comp_id = ‘APEX’);

4- removing old installations.

DROP USER APEX_040000 CASCADE;

 

Note: When having Permission issues by loading the images on Linux, like..

ORA-22288: file or LOB operation FILEOPEN failed
Permission denied
ORA-06512: at “SYS.DBMS_LOB”, line 523
ORA-06512: at “SYS.XMLTYPE”, line 287
ORA-06512: at line 15

The workaround is to copy the images to a different directory.

rm -rf /tmp/apex/images/

then

mkdir -p /tmp/apex/images/

then

cp -r /root/apex/images/* /tmp/apex/images/

then back in sqlplus

@apxldimg.sql /tmp

All is done!

Oracle BPM-BPEL process with correlations

This blog describes a sample application for a POC about using correlations in BPM and BPEL.

Create a SOA project

20121122-123827.jpg

Add BPM technology to your project

20121122-124132.jpg

Create a BPM process with these components

20121122-174342.jpg

Create BPEL component. Select “Based on WSDL”.

20121122-174451.jpg

Add 2 input messages to your process. One to start the process and the other to continue the process.

20121122-174529.jpg

Expose as a SOAP service

20121122-174633.jpg

Add a Receive action to you process link it to client partnerLink.

20121122-174738.jpg

Assign the fromAdapter to the Receive action

20121122-174901.jpg

Create Correlation set

20121122-175040.jpg

Add property to the correlationSet

20121122-175120.jpg

Select de type as String

20121122-175155.jpg

Add 2 Aliases to the property one of message type startProcess(as created before) and the other as fromAdaprt(as created before)

20121122-175244.jpg

Add correlation to receiveInput in your BPELprocess and set initiate “Yes”

20121122-175316.jpg

Add correlation to Receive in your BPELprocess and set initiate “no”

20121122-175427.jpg

Add a request message type to the BPEL WSDL

20121122-175509.jpg

Back to BPM process define input string and assign it

20121122-175608.jpg

Configure the ThrowEvent

20121122-180536.jpg

Assign input message

20121122-180638.jpg

deploy and test your project.

Run process.service, you will see that it will have status running

20121122-180739.jpg

Run bpelprocess1_client.service with the same input as process.service. don’t forget to select the correct operation!

20121122-180804.jpg

Deploy and test your project.

· Start the BPM process.
· User soapUI to send input to the Master process.
· Master process saves input in the database and starts the correlation process.
· You should see in the BPM process that the process gets input.