Hey!
Thanks for the input.
Sorry, but I didnt copy the whole code. I had definitely the inputIndex getting incremented : )
The way I solved this was to simply initialize the Inputs instance:
Inputs input = new Inputs[super.recordsToUpdate.entrySet().size()];
int inputIndex = 0;
START FOR LOOP
Inputs _input = new Inputs();
(…)
input[inputIndex] = _input;
inputIndex++;
END FOR LOOP
Anyway, since I am using the BatchUpdate adapter, I have to also start and commit transactions (LOCAL_TRANSACTION). Unfortunately, I keep having this error: “Unable to rollback transaction. A transaction name must be specified” in my application platform.
I have tried everything to make this work, which makes me assume the application platform does not support the art.pub.transaction services.
This is my current code layout:
String transactionName = “UpdateDevicesTable”;
< StartTransaction >(transactionName)
< Try >
< Loop records >
< Call BatchUpdate adapter >
< CommitTransaction >(transactionName)
< Catch >
< RollbackTransaction >(transactionName)
< End Try-Catch >
I am calling the “art.pub.transaction” services by creating manually the POJOs for the application platform, since we can’t use the wizard.
If this doesn’t work, is there a workaround for this? I still want to (have to) use Application platforms.
Thanks,
Rui Gomes
#Application-Platform#Adapters-and-E-Standards#Integration-Server-and-ESB#webMethods