Calling Concurrent Program in OAF

public void submitRequestPKS(OAPageContext oapagecontext, OAWebBean oawebbean, String s, String s1)
{
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
OAException oaexception;
try
{
OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
Connection connection = oadbtransaction.getJdbcConnection();
ConcurrentRequest concurrentrequest = new ConcurrentRequest(connection);
String s2 = “XXIT”;
String s3 = “XXIT_ASN_PRINT_PACKSLIP”;
try
{
concurrentrequest.addLayout(“XXIT”, “XXIT_ASN_PRINT_PACKSLIP”, “US”, “”, “PDF”);
}
catch(Exception exception)
{
throw OAException.wrapperException(exception);
}
Vector vector = new Vector();
vector.addElement(s);
vector.addElement(s1);
int i = concurrentrequest.submitRequest(s2, s3, null, null, false, vector);
oadbtransaction.commit();
throw new OAException((new StringBuilder()).append(“Request Submitted Successfully for Packing Slip”).append(i).toString(), (byte)3);
}
catch(RequestSubmissionException requestsubmissionexception)
{
oaexception = new OAException(requestsubmissionexception.getMessage());
}
throw oaexception;
}

Recent Posts