Is there a way (or will be) to run a subprocess synchronously, containing a user task , passing pmid as a parameter?
We would like to be able to execute a subprocess call in that way, passing the pmid as a parameter to control the flow of the process from, for example a Decision table.
Discussion posts and replies are publicly visible
There is no direct way to trigger a process that way. Depending on how many choices you have, a dispatching model might implement the logic to branch off a sync process depending on conditions.
Thx Stefan, we made a quick search, and realize that there was no option actually.
Do you know if the feature will be available in next versions? I think that it could be a great improvement in the platform.
On the other hand, if this is not planned, do you know if it can be implemented via Appian API creating a new smart service? I think that it would only be necesssary to locate the actual implementation of the call subprocess smart service, but we don't really know where is actually located.
Unknown said:Do you know if the feature will be available in next versions?
There's no way to say for sure, but I can fairly confidently say there's absolutely no reason to expect such a thing to just turn up in any of the 24+ versions. The various subprocess launching mechanisms in place already are sufficient for >95% of use cases (even being stingy with that estimate) and I have not seen any particular demand for such a thing.
Unknown said:do you know if it can be implemented via Appian API
An API call can already be used to launch a process, but it still wouldn't be synchronous.
If your use case absolutely requires the synchronous flow, the only thing I can think to suggest is that you can just call a handler subprocess that branches to the different possible child processes (synchronously). If you didn't require synchronous (chained) process flow then it would be even easier, since you could just use the Start Process Node.
The future is one of the hardest things to predict
What do you try to achieve?
Finally, I'd recommend you tell us a bit more detail about your real-world use case, because I often find that there are other workable workarounds that fit the requirements even if they're a slight departure from the imagined design people were initially stuck on.
Thx a lot Mike.
IN this case , imagine that you have a lot of subprocesses , and each request you have to process has to go to different subprocess, even depending of the results from previous subprocess executed in the same request and process instance (and can contain user interfaces)
It's like you need to have a dynamic programing of the request you are processing, and that makes almost impossible to implement all the different flows that can be executed.
If you can control via aBRMS or a decision table which one will be the next subprocess to execute, having in mind the actual context, and you have the pmid, the problem would be solved.
You can do that with the Start Process node, it just won't be synchronous.
I know , and that is the problem.. that under some circunstances we need the subprocess call to be sync
Unknown said:we need the subprocess call to be sync
Why, exactly?
The question is that it's the same behaviour we can actually implement with the smart services in appian, but passing the pmid as a parameter instead of selecting it when configuring the smart service.
For example, when you need to keep the chaining during all the process..