cancel
Showing results for 
Search instead for 
Did you mean: 

Rollback and Chekin of workflow in Java API

Former Member
0 Kudos

Hi,

I'm trying to do checkin and rollback of workflow via Java API.

I.e checkin a product in worfklow task with status Received.

I assume I need (in java code) WorkflowTaskAction (Delete) to do this, but when I extract this action and try to get the actionparameters null is returned:

WorkflowActionMenuNode[] wfMenuNode = actions[j].getActionParameters();

--> null

How can I specify that I wan't to do a rollback or checkin and not just do a Delete?

I use MDM SP5 so I can't use DeleteWorkflowJobCommand.

Best Regards

Olof

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member205403
Active Contributor
0 Kudos

Hi,

I have not tried by Java API code, so can't help much. But I think You can Check-in or Rollback a checked-out product in workflow at workflow Stop step.

I feel, Workflow Task action delete is to delete the workflow Task. Try Workflow Task Action as corresponding to Next Step Task action and get action parameters. At last execute action "STOP".

In case you have missed, Please go through Java API guide on Page no 58 (Processing Workflows) and page no 78 (Code Samples for Workflow Processing). This will help you.

[Java API Guide|http://help.sap.com/saphelp_nwmdm71/helpdata/en/72/d36e1ed3ce43028adc851b8fed5668/MDM_Java_Net_API_Guide.pdf]

Regards,

Shiv