Hi Nico,
Thank you for your valuable inputs. Now i am able to get task list.
But when i try to initialize the process by adopting the message from
the RemoteAbsenceRequestTes,it is failing and throws the following
exception.
http://docs.oasis-open.org/wsbpel/2.0/process/executable
Name: selectionFailure
Explanation: R-Value expression "{OXPath10Expression
$xformInitProcessRequestMsg.root/xform:taskOutput/xform:output/
xform:group/xform:Name}" did not select any nodes.
Line number: 200
Aiid: 59
J2EE client code
String paramUser = "intalio\\admin";
String paramPassword = "changeit";
TokenClient client = new TokenClient(TOKEN_SERVICE);
_
log.info("We are trying to authenticate as user:" + paramUser + "
with password:" + paramPassword);
String token = client.authenticateUser(paramUser, paramPassword);
RemoteTMSClient tms = new RemoteTMSClient(TMS_SERVICE, token);
Task[] tasks = tms.getAvailableTasks("PIPATask", "T._description like
'%Start Process%'");
if(tasks!= null){
_
log.info("task length:" + tasks.length);
}
String pipaID = tasks[0].getID();
HashMap<String, Object> group = new HashMap<String, Object>();
group.put("Name","Mahesh");
group.put("Email","
babu....@gmail.com");
HashMap<String, Object> pipa = new HashMap<String, Object>();
pipa.put("group", group);
tms.init(pipaID, xmlTooling.parseXML(pipa(pipa)));
/**
* Couldn't get a better name :) Prepare some parameters for a
dynamic pipa
* input.
*/
private String pipa(HashMap pipa) throws Exception {
return templateMe("StartServer.ftl", pipa);
}
/**
* Get the Result from templating operation
*/
private String templateMe(String template, Map params) throws
Exception {
Template temp = cfg.getTemplate(template);
StringWriter writer = new StringWriter();
temp.process(params, writer);
return writer.toString();
}
StartServer.ftl
----------------------
<output xmlns="
http://example.com/PA/xform" xmlns:xform="http://
example.com/PA/xform" xmlns:tns="
http://www.intalio.com/BPMS/Workflow/
TaskManagementServices-20051109/">
<group>
<name>${group.Name}</name>
<email>${group.Email}</email>
</group>
</output>
Please validate the code written and help me to resolve the problem.
Regards
Mahesh
On Sep 10, 12:21 pm, Nicolas Modrzyk <
hellon...@gmail.com> wrote:
> > Hi nick,
>
> I will stick with Nico if you do not mind :)
>
> > I deployed this example 'SimpleCreateComplete" listed under the
> > following url and able to see this process under BPMS-CONSOLE,UI-FW(Ui
> > Framework). And i tested the process also. It runs successfully.
>
> It appears in both bpms-console and ui-fw because
> - it is a process, so it will show up in the console anyway
> - it has a PIPA, a task to start a process, so it will show up in the
> process tab of the user it has been assigned to.
>
> >
http://github.com/hellonico/tempodevprocesses/tree/master
>
> > It is expecting the following inputs Name and Email.
>
> > In order to start this process from java client, could you please
> > send me pseudo code to start this process. From there i can go.
>
> U just need to adapt the input message from this test:
http://github.com/intalio/tempo/commits/master/tms-client/src/test/ja...