How to get output from runexternalcommand in the workflow?
We are trying to find a solution to get a long list of IDs from the application using runexternalcommand in the workflow. Its a customized command which simply transfers the list. See below for the code of the command:
window.gcViewerApp.commandRegistry.command("appToViewer").register(this, function () {
var paramForViewer = sendTenureToViewer();
console.log("appToViewer: " + paramForViewer);
return paramForViewer;
function sendTenureToViewer(){
return "100023,100033";
In workflow designer, we used runexternalcommand with "appToViewer". But is there any way we can get the list of IDs? i.e. "100023,100033"?
Thanks
Dori
0
-
Hi Dori,
First to give some details about the "register" method, the execute method is supposed to return void as shown in the below screenshot:
Secondly, I don't think using "return" you can send anything to workflow as an output.
As you are expecting return values also, I would suggest you to use DynamicExternal Activity to perform your logic and return values accordingly. Here is an example of "How to use Dynamic External Activity" with return values. This example is to dispaly custom HTML5 forms, however you can get an idea to use dynamic external activity from it.
https://www.dropbox.com/s/8r32jbsr60spf69/UseOfDynamicExternalActivity.rar?dl=0
Kindly let me know should you require any further help.
Regards,
Mohammad Ashraf0 -
Hi Ashraf,
I am trying to access the above link you mentioned but the link is not working.
Could you could please provide any alternate link for this, if possible. I want to learn how to write and use external activities.
Thank you :)
Srikanth0 -
Sorry for the above comment. File is available, I was accessing it from a different timezone. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer