Hi,
I want to call a business process from a script task of another business process. I did this because I want to send email to a collection of contacts, so I will do a foreach loop in the script task, and call the second business proces that will send the emails.
The problem is that the second business process, its call from the first one, and appears in the process log as running, but it doesnt do anything, neither send the mail nor finish running.
The script task code:
var _sendMailId = new Guid("451f9ef3-2a11-4ca8-9107-02e23e56f9f3");
var _manager = UserConnection.ProcessSchemaManager;
var _schema = (ProcessSchema)_manager.GetInstanceByUId(_sendMailId);
var _moduleProcess = _schema.CreateProcess(UserConnection);
_moduleProcess.Execute(UserConnection);
return true;
First business process: Mutiple email sender
Second Business process: MBS Send Email
Process log:
Thank you.
Javier Collazo
Like
The problem here was that the business process that was call form the parent business process, wasn't receiving the parameter. The solution to this problem you can find it in the following question:
https://community.bpmonline.com/questions/calling-business-process-para…
Best regards,
Javier
Hello,
At first you should be confident about business process that sends email is working properly. So, try to start it manually. If it will work, then something is wrong with your script task. Perhaps, you have just missed some parameters that are required in "MBS send email process"
At second, try to save the process once again and compile the system.
Best regards,
Alex
The problem here was that the business process that was call form the parent business process, wasn't receiving the parameter. The solution to this problem you can find it in the following question:
https://community.bpmonline.com/questions/calling-business-process-para…
Best regards,
Javier