I am trying to invoke flow service from a JAVA service using Service.doThreadInvoke.but i am getting access denied exception.
it works if i make execute ACL as anonymous for called svc but i dont want to do that.I tried passing session object in the input still its not working.
Are you getting this error other than Anonymous ACL, did you create your own group,created a user in that group and tried to assign that user to call a flow from java service ?
Service.doThreadInvoke (at least most of them, depends on Signature) is meanwhile deprecated (at least for 9.5 SP1 and newer) and is being replaced by Service.doThreadInvoke with an additional parameter time of Type long for how long to wait for the thread according to JavaAPI Reference.
Please check the JavaAPI Reference for further details.
You need to create context by connecting to the server with credentials and then use the context.invoke to execute the flow service. Best way to do this would be to follow below steps,
Go to Designer and connect to the Integration server hosting your Flow service.
Right click on the flow service in the package navigator and click “Generate Code”.
Choose the last option in the list “For calling this service from a client”.
When prompted to save the .java file, save it to your machine.
Add this Java code to your original Java project and add wm-isclient.jar to the build path in eclipse.
Now use username\password to connect.
context.connect(server, username, password);
After that use the context.invoke(NSName svcName, Values data)