Skip to Content
0
Former Member
Jan 21, 2009 at 03:33 PM

problem with automated acivity

98 Views

Hi There,

i deployed and tested an small process with only a human task in it and it works finde. If i use this process as an sub-process in a projekt it also works fine - i get all data in that i need and all data out.

Now i want to connect to this process via an automated activity. I know it is not an automated activity, but the automated activity seems to be the only activity that could connect to an external processes via wsdl. In some business cases it could be usefull to contact an external system, e.g. you want to order something and need to know when it will be delivered. That contacted process could also include a human task. If i create and deploy a new process calling the working process[A] as an automated activiy, i got no problems. When I test the new process and it moves onto the automated activty, it stops. I got this error-log in the "Manage Processes: Process Instance":

com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script "_Pool:AUTOMATED_ACTIVITY_Automated_0(
      com.sap.glx.adapter.BPMNAdapter:Token_0_spielwiese01_a604e770dc7e6b5479b50e045644d2e1 token,
      com.sap.glx.adapter.BPMNAdapter:Instance_0_spielwiese01_a604e770dc7e6b5479b50e045644d2e1 parent,
      com.sap.glx.adapter.internal.ContainerAdapter:Context_1_context_receive_a604e770dc7e6b5479b50e045644d2e1 context_1,
      com.sap.glx.adapter.internal.ContainerAdapter:Context_2_context_automated_a604e770dc7e6b5479b50e045644d2e1 context_2){
  exit=new com.sap.glx.adapter.BPMNAdapter:Exit();
  exit:addParameter(token);
  exit:addParameter(parent);
  exit:addParameter(context_1);
  exit:addParameter(context_2);
  exit:onActivation("4974879D9AA985D0E63111DDCA2400217092AA13", parent, token);
  delete exit;
  controller=new com.sap.glx.adapter.internal.ExceptionAdapter:ExceptionController();
  controller:setContext(token);
  delete controller;
  callscope=new com.sap.glx.adapter.internal.TypeRegistry:Scope_11_Pool_a604e770dc7e6b5479b50e045644d2e1(parent);
  call=new com.sap.glx.adapter.UnifiedConnectivityAdapter:Call_0_Automated_0_a604e770dc7e6b5479b50e045644d2e1(callscope);
  request=callscope:instantiate("http://www.example.org/spielwiese02wsdl01/", "497487687B529AA7E63111DDB29800217092AA13");
  mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
  yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
  yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
  data=context_1:getData();
  yves_in:setData("sap.com/glx/", "$sap.com/glx/:context_receive", data, "1DAF76A23BDC9279AF6BBE6D0AF2E93A");
  yves_out:setData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperation", request, "810C25ED554A6B1E81208E865E05C067");
  mapper:map("4974879D9AB56CB2E63111DDC3EE00217092AA13_a604e770dc7e6b5479b50e045644d2e1", yves_in, yves_out);
  request=yves_out:getData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperation", "810C25ED554A6B1E81208E865E05C067");
  delete yves_in;
  delete yves_out;
  delete mapper;
  call:setInputData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperation", request);
  response=callscope:instantiate("http://www.example.org/spielwiese02wsdl01/", "497487687B577CA6E63111DDCDD500217092AA13");
  call:setOutputData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperationResponse", response);
  call:invoke();
  response=call:getOutputData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperationResponse");
  mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
  yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
  yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
  yves_in:setData("http://www.example.org/spielwiese02wsdl01/", "$http://www.example.org/spielwiese02wsdl01/:NewOperationResponse", response, "810C25ED554A6B1E81208E865E05C067");
  data=context_1:getData();
  yves_in:setData("sap.com/glx/", "$sap.com/glx/:context_receive", data, "1DAF76A23BDC9279AF6BBE6D0AF2E93A");
  data=context_2:getData();
  scope=new com.sap.glx.adapter.internal.TypeRegistry:GenericScope(null, "C0BC131C9A6E10ECBFBC7FC378051773");
  copy=scope:copy(data);
  delete scope;
  yves_out:setData("sap.com/glx/", "$sap.com/glx/:context_automated", copy, "C0BC131C9A6E10ECBFBC7FC378051773");
  mapper:map("4974879D9AB56CB4E63111DDAACC00217092AA13_a604e770dc7e6b5479b50e045644d2e1", yves_in, yves_out);
  data=yves_out:getData("sap.com/glx/", "$sap.com/glx/:context_automated", "C0BC131C9A6E10ECBFBC7FC378051773");
  context_2:setData(data);
  delete yves_in;
  delete yves_out;
  delete mapper;
  delete call;
  delete callscope;
  token:state=4;
}"
com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:69)
com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:241)
com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:118)
com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:116)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAs(Subject.java:337)
com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:114)
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
java.security.AccessController.doPrivileged(Native Method)
com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)

com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script command "call=new com.sap.glx.adapter.UnifiedConnectivityAdapter:Call_0_Automated_0_a604e770dc7e6b5479b50e045644d2e1(callscope)"
com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:675)
... (11 more)

com.sap.glx.core.kernel.api.TransitionRollbackException
com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:517)
com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:526)
com.sap.glx.core.dock.impl.GalaxyClassImpl.create(GalaxyClassImpl.java:183)
com.sap.glx.core.kernel.trigger.config.Script$NewInstance.execute(Script.java:365)
... (12 more)

com.sap.glx.core.kernel.api.TransitionException: com.sap.glx.adapter.api.AdapterException: Exception occured during wsdas initialization.
com.sap.glx.core.dock.impl.DockObjectImpl.creation(DockObjectImpl.java:172)
... (14 more)

com.sap.glx.adapter.api.AdapterException: Exception occured during wsdas initialization.
com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.loadWSDAS(UnifiedWebServiceCallClass.java:67)
com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.onConstruction(UnifiedWebServiceCallClass.java:254)
... (15 more)

com.sap.glx.adapter.api.AdapterException: Exception occured during wsdas initialization.
com.sap.glx.adapter.app.ucon.UnifiedConnectivityAdapter.createNewWSDASFromScope(UnifiedConnectivityAdapter.java:640)
... (17 more)

javax.xml.rpc.ServiceException: not found assignment to a physical system for the service group new_undefined_sg_1
com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getDestinationsHelperInner(DestinationsHelperImplSoa.java:276)
com.sap.engine.services.webservices.espbase.client.dynamic.DestinationsHelper.getDestinationsHelper(DestinationsHelper.java:50)
com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getDestinationsHelper(GenericServiceFactory.java:563)
com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:314)
com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:299)
com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASImpl.<init>(WSDASImpl.java:33)
com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASFactoryImpl.createWSDAS(WSDASFactoryImpl.java:39)
... (18 more)

I think i haven't configured my automatic process correctly, but i don't know where the problem is. I didn't define a "service group" by myself and used "no athentication" as my authentication profile in the generated service group. I tried some different methods to solve the problem, but it's always the same. I imported the wsdl-file in diffent ways - but nothing changes.

The tutorials and information i found about automated activitys were about how to use "sourcecode" as an automated activity like "create_employee" or how to use completly automated activitys, so i thought i wouldn't need to create physical System or profile.

I need to connect two or more processes within one process. To create all processes as sub-processes wouldnt solve the problem.

Does anyone have an idea what i'm doing wrong or is it just not possible to create communication between two or more processes with human tasks in them?

Thanks and regards

Markus