Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
MGibson

Member
Registered:
Posts: 25
Reply with quote  #1 
We have an action that was exposed as a web service (Respond_To_AP). This Action has a form associated with it with one field (Action_Notes). I have called blank forms before where the form starts a process but never called one where the action is on a folder that already exists.  There are several methods and properties that came over when I connected to the web service that I am unfamiliar with. 


Does anyone have an example of calling an action through web services?

Login and everything is fine I just don't see what the process is for calling the action and passing in the form data.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
We have always avoided that. If you do this, you have to expect many possible errors. The Folder may not be available, the Action may not be available, or the Folder may be locked by a user.

The only safe way we have found to pass data to Metastorm BPM using web services is to use a Blank Form action.

To make it even simpler, we set up one single action to be raised by a flag and a limited set of data ending on a memo for delimited additional data. This flag action is the start of a simple process that stores the data, and then decides what flag to raise and passes in the data. It always works, and we've been doing it this way for over 10 years.

To raise the flag we have a simple web service. This is typically triggered by a submission in a web page or called from another system.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
MGibson

Member
Registered:
Posts: 25
Reply with quote  #3 
I have built a second web service (BMellert helped with the logic for validation)  to verify that the action is available and other validations to make sure that the action can be called.  If the action cannot be called then we do not allow the form to be submitted.


0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
We can call a flag from a web service or remote asp/x response page?  I was starting down that approach when we though Mobile BPM was an option, but it  has proven to not be after all (considering Blackberry is officially no longer supported and they never got it working correctly though a BES server) so we have having to look at a different approach MGibson is trying to work through.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #5 
We use the FreeFlow library to do do it. We also have a simple we service set up to call that, and it calls the FreeFlow method to raise the flag. That is IIRC - it was set up many years ago, and it just works, but works several hundred times a day, mind you.

This is in v7, but I think it should be the same in v9. Basically we gave up trying to use the MBPM functionality and built our own. Once that was done, there was no point doing it any other way. Frankly, exposing an action on an existing Folder was never a reliable approach IMO. There are so many possible errors, and you need to manage them for every single call. This way we quietly handle the call, and any faults are managed and recorded by MBPM. The fact that MBPM already has a method to handle locked folders when flags are raised made it an obvious choice to use this approach.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!