First of all, you should know what is the input type that your webservice connector accepts. Otherwise you will keep getting the cast exceptions.
Assuming that your “setStepErrorsFrmProcess” accepts a string array of stepIds, below is the sample code:
String selectedStepIdsFromTable = new String[selectedRowObjects.size()];
// Iterate through selected rows and get the STEP ID (or any other value you are interested in)
for(int i=0;i<selectedRowObjects.size();i++)
{
selectedStepIdsFromTable[i] = ((<TYPE CAST TO ITS CLASS>)selectedRowObjects.get(i)).getStepId();
}
// Invoke your webservice
getResubmitProcessStep().getParameters().getResubmitProcessStep().getResubmitProcessStep().setStepErrorsFrmProcess(selectedStepIdsFromTable);
Above code is assuming your “setStepErrorsFrmProcess” accepts string as input. If it accepts some other type then you need to prepare your inputs according and then pass into it.
#MWS-CAF-Task-Engine#webMethods-BPMS#webMethods