playsted 10 months ago in Server / Execution • updated by Pieter 9 months ago 6

What javascript execution engine is used? I have having issues with scripts as some functions are not working properly.

Problem 1:


is valid javascript and works with node and browsers. This should return true.

However running this as a script in a workflow results in an error due to it not being a function.

Problem 2:

If I use variables in the script the strings are not escaped.


[[testPath]] = "C:\test"

In script:

"[[testPath]]" => "c:est"


I think it would be very powerful to use node.js as the javascript execution as it is so widely used. Edge.js is a c# library that allows node to easily be executed from .Net. I haven't researched it much but may be an option.

As far as escaping strings you could predefine them all on a javascript object that the script runs in. Instead of using [[varName]] we could just use $ww.varName if we use $ww as the example object that Warewolf populates. This would take care of string escaping problems and even allow complex objects to be manipulated as expected while coding javascript.

execution server workflow
Pieter 9 months ago

Hi Playsted,

We will look into updating the library in a coming version.

Thanks for the suggestion and thinking on this we will definitely consider it.

playsted 10 months ago in Server / Execution • updated by Genie 10 months ago 1


Is workflow state persisted? Can long running workflows (for example if waiting for user interaction/approval) be resumed on server restart? I know workflow foundation supports this (if enabled) but didn't see any specifics in documentation.


execution service workflow
Genie 10 months ago

Hi Playsted,

We have moved away from using the Workflow Foundation engine and in doing so we did not have an immediate requirement from any of our customers to support workflow persistence, and so we did not implement it. So at present there is no state persistence in Warewolf, however should the requirement arise in the market then we can implement it.


Under review
keith_k 1 year ago in Server • updated by Gandalf 11 months ago 3

How do you add an SSL certificate or what is needed to make an HTTPS connection to a web server?

When I click New Remote Server, I am able to successfully connect to my remote server with http://ipaddress:3142 as the address and Microsoft User/Password authentication. However, I receive the following error when trying to connect with https://ipaddress:3143

Connection Error : An error occurred while sending the request.


My remote server is a VM through Microsoft Azure. The VM was created with the Warewolf ESB, so the HTTP: TCP/3142 and HTTPS: TCP/3143 inbound security rules are all in place. Also, I can successfully connect to my localhost machine from the remote server with both HTTP/HTTPS.

deploy server
Anonymous 1 year ago in Server / Execution • updated by Gandalf 1 year ago 1

When trying to write a file, I keep getting the error: File already exists.

This was working before as the tool is set to overwrite and nothing has changed, it just stopped working.


windows 10

service execution tool
Gandalf 1 year ago

1. Open c:\windows\temp

2. Delete *.tmp files

Windows workflow foundation creates these files at run time when certain tools are executed.

Kyle TFL 1 year ago in Server / Execution • updated by Gandalf 1 year ago 3


Im passing a recordset of numbers into the Format Number tool and I keep getting an error in the debug: One of the identified items was in an invalid format.

Everything works until I start passing in decimal numbers, regardless of if I try and round them or not.

I have checked my computer regional settings and they are correct for the numbers I am using e.g. 200.0876 and regional settings says use a full stop . for Decimal Symbol.

I dont know what else to do, please help.

execution tool workflow
Under review
Victor Rocha 2 years ago in Server / Resources • updated by Genie 8 months ago 7

Are you planning to support (host) WCF services?

I mean, give to user the ability to load a DLL dynamically and host it (endpoint) within Warewolf ESB to be accessed by Warewolf and any other WCF client? Is it possible?


  • 1 - Load DLL - WCFHelloService.IHelloServiceBus - (Contract - mapping methods dynamically)

  • 2 - Host it:
using System.ServiceModel;
ServiceHost host = new ServiceHost(typeof(HelloServiceBus), uri);

  • 3 - Turns it available as a WCF's endpoint (Some binding types) to be consumed by any WCF client and Warewolf ESB:

<service name="WCFHelloService.HelloServiceBus">
<endpoint address="net.tcp://warewolfendpoint/HelloService" binding="netTcpBinding" contract="WCFHelloService.IHelloServiceBus"/>
I believe, if it is possible, that WCF hosting will give much more integration capabilities, enabling users to concentrate all its WCF services into Warewolf ESB.
Best regards!
Genie 8 months ago

Hi Victor,

Warewolf ESB currently allows connecting to webservices as well as loading of .net dll so both these methods are options to access an existing WCF service.


Henry Jones 2 years ago in Server / Execution • updated by Gandalf 2 years ago 3

I saw the example for executing a warewolf service using Javascript in the examples folder. However i tried doing it using jQuery as so

<script type="text/javascript">
function execution() {
var wareWolfUrl = "http://localhost:3142/services/Hello World.json

type: "GET",
url: wareWolfUrl,
cache: false,

success: function (response) {
error: function (errorThrown) {
complete: function (e) {

i am getting the following error:

XMLHttpRequest cannot load http://localhost:3142/services/Hello%20World.json? No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:23128' is therefore not allowed a... response had HTTP status code 401.

Am i doing something wrong or is the way in the sample the only way that the service can be executed.

web execution
Paul Cannell 3 years ago in Server / Execution • updated by Gandalf 3 years ago 1
When performing a longer running activity such as file processing id like to fire off the workflow. Have it return to me as the called immediately. Then internally it can email me / whoever when its complete. At the moment the call to the workflow is blocking.
Paul Cannell 3 years ago in Server / Execution • updated by Gandalf 3 years ago 0
If you think back to .net remoting you'll prob need to read no further but in case you missed that "fun" time read on.

I have a recordset with X rows.
I need to perform some validation for each one to decide whether to exclude this record at this point (carrying on would result in failure)

in my recordset is a return code. I then need to decide based on this code whether to proceed. lets assume of all 10 return codes 3 will allow the process to continue the other 7 are considered failure. 
I create my service that takes in a code and then gets a list of statuscodes and the resulting action. 
I then call this service for each entry in my recordset. If that services has to goto the DB each time its going to be a perfomant dog. If however it were to cache the results (as we do in code all the time - think lookup date bank names, branch codes, post codes etc) it would make performance much better
So what Im asking for is a services that is created but doesnt get collected once its been used. Singleton vs SingleCall
If this exists plz point me in the correct direction
Gandalf 3 years ago
Hi Paul

Excellent question. 

You are correct, performance would be a dog. The best design to handle this is to create your validation workflow to accept recordsets Inputs and return recordset Outputs (rather than scalars and then putting it inside a for each).

In this way you can map the entire recordset with next to no overhead into the validation workflow, do one db call and then handle the iteration between records inside that workflow.

Paul Cannell 3 years ago in Server • updated by Gandalf 2 years ago 2
Ive changed a sproc. I go to update the service that references that. I then goto the use of that service on the designer canvas to update it to take in the new params. 
The service just vanishes in the background. Then in the designer I cant save my changes as there is no server. I dont loose much data but I have to then restart which is annoying. Its intermittent at the moment. If I get steps to reproduce ill post them here.
This has happened a couple times while playing with sproc related updated. I do hit ctrl-s a lot without thinking from just general coding so maybe the multiple saves are somehow causing badness when talking to the server?
Gandalf 2 years ago
Thanks Paul. We are looking into your issue.