cancel
Showing results for 
Search instead for 
Did you mean: 

How to publish an own and deployed process? Via WSDL?

Former Member
0 Kudos

Hi There,

i'm kinda new to BPM and i got some questions. I've gone through some tutorials and created my own process. I build and deployed it, startet it through the NWA and tested it (mostly human activitys and mappings). Everything works fine but i'm facing some unsolved problems:

1. Is it possible to get the sourcecode of the deployed process from the repository? I've already downloaded the WSDL-file from the "Single Service Administration" and want to get the process itself too.

2. Within the "Services Registry" i published the deployed process. I imported this published WSDL within the process composer (import per Service Registry) and linked it in an automated activity, but it seems that the process can't invoke itself. Neither when i use the imported interface at the end-event it doesn't "restart". My question here is: can't a process invoke itself or does it just not work with the default wsdl? It would be intresting for me, if a process could invoke another process when it ends.

3. Is there any good tutorial how to create an own WSDL-file with the process composer? I haven't seen any yet.

Any information would be helpful!

With kind regards,

Markus

Edited by: Markus on Jan 14, 2009 3:44 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

Hi Markus,

when u deploy the process , u will find the default service for the BPM process in web service navigator.

u can execute this web service from the web dynpro application to start the process from web dynpro application.

the below mentioned article descripes about initiating the process:

https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11677

Thanks and regards

Fazal

Former Member
0 Kudos

Hi Fazal,

thanks for your answer. I had already found the process in the web service navigator. I tested it there and it was ok. But i wasnt able to find it in the UDDI-registry, so i downloaded the WSDL-File from the "single service administration" and registered it in the UDDI-registry. I imported this published WSDL-file from the UDDI-registry within the process composer to be able to test if a process can invoke itself, but it didnt work. Than i tried a new process which only has an automated activity which trys to invoke my first process, but this doesn't seem to work too. I need to know how i can invoke another process within an automated task or at the end-event of a process. I think this could be helpfull if i want to create Sub-Process and route input and output data through it.

I also need to know how i can create my own WSDL-file for a process which i want to create with the process composer, because not every process i want to define has an empty start nor an empty end. Is there any good tutorial for this? Somebody also mentioned that he/she created an own WSDL-file with the PI server, but i dont know how to do that. It is also confusing when you got ~ten or more default services within the web service navigator.

With kind regards

Markus

former_member201361
Active Contributor
0 Kudos

Hi Markus,

I need to know how i can invoke another process within an automated task or at the end-event of a process. I think this could be helpfull if i want to create Sub-Process and route input and output data through it.

To invoke another process from a first Process , it is enough to import the web services corresponds to that process and execute it from web dynpro java(Human task) .

for the subprocess, change the default service for the start and end event of the subprocess with approriate service(services which suits your requirements). so that in the main process , u can do the input mapping and output mapping to the subprocess.

even i have raised a thread regarding the subprocess, please have a look to it

[;

Thanks and regards

Fazal

Former Member
0 Kudos

Hi Fazal,

thanks for your answer again. I already read your post when you started it and it was very intresting.

I know that the default service doesn't fit my requirements, but i'm also facing the problem that i dont know how to create my own useful WSDL-files/Interfaces for the start- and endevent. What i want is, that e.g. my startevent triggers and gets an integer-value as an input. The endevent should ouput a string.

How can i create a approriate WSDL-file which fits my requirements? I haven't done this before and dont know how to do it with the NWDS or PI. Is there any good book i can buy or tutorial i can go through about creating WSDL-files with SAP-tools?

With kind regards

Markus

former_member201361
Active Contributor
0 Kudos

Hi Markus,

please refer this links for implementing servives .

https://www.sdn.sap.com/irj/sdn/nw-development?rid=/webcontent/uuid/903c2cdb-98d6-2a10-84b7-ab22535d...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/composition/compos...

for more information , u can search in Composition Ebvironment and composite Application Forum.

Thanks and regards

Fazal

Former Member
0 Kudos

Hi Fazal,

thanks for the information! I will go through the documents and post my results as soon as i'm finished.

With kind regards

Markus

Former Member
0 Kudos

Hi Markus,

You can find information about the WSDL Editor here: http://www.eclipse.org/webtools/ws/

In BPM, you can create a WSDL with a right click on "Service Interfaces" in the project explorer.

Best regards,

David

Former Member
0 Kudos

Hi There,

I'm now able to create my own working WSDL-Files, thanks. I can start my process now with SOAPUI after deploying it.

Another question i asked in the beginning was "is possible to get/download the sourcecode of a deployed process?". Does anybody know something about this?

With kind regards

Markus

Former Member
0 Kudos

Hi Markus,

In the Process Repository view in the NWA, you can select the development component. When a version of the DC is selected (second table), the last table (3rd table) shows the list of processes and tasks deployed with this DC. When selecting the second tab on this table, you can find all artifacts deployed with the DC. Unfortunately, these are produced by the compiler and no "reverse engineering" is possible.

Hope this helps,

David

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Markus,

i've got a problem with the Web Service, which is similar to yours. Maybe you (or someone else) can help me.

I'm also very new to BPM and i also did a few tutorials from the SDN. At the moment I'm doing the tutorial "[Building a Composite Business Process from Scratch with SAP NetWeaver Business Process Management (Part 1 and 2)https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12442;" (maybe you did this tutorial as well?).

This tutorial describes a process that consists of 2 human activities followed by an automated activity (using a web service) followed by a third human activity.

I did all the steps of the tutorial as shown (i checked the service in the service repository, defined a logical destination, assigned the service to the according automated activity, imported the WSDL file into the Developer Studio, created the mappings and so on).

When i run the process, the first two human activities work fine, but the automated activity seems to has a problem, because the human activity that follows the automated activity (which works with the service) doesn't show up in the UWL of my test user.

The log viewer shows amongst others the following error:

"[EXCEPTION] com.sap.esi.esp.lib.mm.config.exceptions.TechnicalException: No connection to Services Registry available. Please set it up via CTC template for central Services Registry."

respectively

"No SR connection available, set up it and try again. [EXCEPTION]

com.sap.esi.esp.lib.mm.config.exceptions.SRTechnicalExceptionNo SR connection available, set up it and try again."

May this be the reason or what else can cause this problem?

Hope, someone can help me, it is really important to me, to get this problem solved.

Regards, Andreas

Edited by: Andreas Gr on Jan 26, 2009 3:43 PM

Former Member
0 Kudos

Hello David,

thank you for your answer. I hoped it would be possible to get the compiled and deployed process because i thought it should be a XML-file.

With kind regards

Markus