on 09-01-2011 8:17 PM
Hello,
I am creating a Webdynpro Java Application to listen to the Save event on the Item Edit iview through Eventing, the application is called on that event and RecordID is fetched in the code.
Now I want to trigger the workflow for that Record being edited using the Record ID.
How can I achieve the same using the MDM Java APIs?
Any help would be highly appreciated.
Thanks.
Hi,
This might be useful to you,
AddRecordsToWorkflowJobCommand
public AddRecordsToWorkflowJobCommand(ConnectionAccessor connection)
Creates an instance of this command.
Parameters:
connection - the connection to the server
Thanks,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I am using the following code to execute the Job for the Workflow :
LaunchWorkflowJobCommand LWJC = new LaunchWorkflowJobCommand(connections);
LWJC.setSession(session);
WorkflowJobId WJID = new WorkflowJobId(wfjc.getWorkflowJobId()); // where wfjc is of Type CreateWorkflowJobCommand
LWJC.setJobId(WJID);
try
{
LWJC.execute();
}
catch (CommandException e)
{
e.printStackTrace();
return;
}
but at runtime it gives me the following exception :
com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter
Please help me on why this exception is occuring .
Any help would be highly appreciated.
Thanks.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.