JAVA EMBEDDING ACTIVITY
addAuditTrailEntry("Base64decode started");
try {
String EncodedStr = (String) getVariableData("EncodedString");
addAuditTrailEntry("input="+EncodedStr);
oracle.soa.common.util.Base64Decoder decoder = new oracle.soa.common.util.Base64Decoder();
String decoded = null;
decoded = decoder.decode(EncodedStr);
addAuditTrailEntry("Base64decode decoded="+decoded);
setVariableData("DecodedString",decoded);
} catch (Exception e) {
addAuditTrailEntry("Base64decode Exception: "+e.getMessage());
}
addAuditTrailEntry("Base64decode ended");
IMPORT STATEMENT for BPEL 1.0 and 1.1
<bpelx:exec import="java.lang.*"/>
<bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
<bpelx:exec import="oracle.soa.common.util.*"/>
<import namespace="http://schemas.oracle.com/bpel/extension" importType="oracle.xml.parser.v2.XMLElement"/>
<import namespace="http://schemas.oracle.com/bpel/extension" importType="oracle.soa.common.util.*"/>
<import namespace="http://schemas.oracle.com/bpel/extension" importType="java.lang.*"/>
Comments
Post a Comment