Date Time and Debug not correct

Hagashen Naidu 2 years ago in Server / Execution 0

Please see attached workflow. When passing the following JSON as input:

"dateTime": "2020-04-14T09:20:18.982Z"

Even though the JSON is valid and I have specified the DateTime Input Format correctly when I debug I get an error that the Input String is not in the correct format. However when I 'View in Browser' it does not show an error. Furthermore the debug input of the tool does not show the input due to the error.


Date Time Issue.bite

PS. I got this to work by making the input format my current system format as it turned out, internally the Newtonsoft de-serializer interprets the DateTime into the system format. This is however hidden from user and would be difficult to find.

I think showing the Debug Input values would help the user see what value was actually being used and then they could adjust the format based on that. There is a case for saying that the format should not have changed without me explicitly doing so.

execution tool

RabbitMQ limitations (messages per second)?

Michael 3 years ago in Server / Execution 0


is there any limitation on the RabbitMQ Publish Module? 

In my case, I have one recordset with about 60000 different numbers. Now I want to publish this to RabbitMQ. But I only got a message rate of max. 20/s. That's not so fast. With other tools I reached over 20000 per second. 

During the job runs, I've checked the system performance. 
CPU: < 25%

RAM:  2,5Gb / 8Gb

How much messages can WareWolf send to RabbitMQ?


execution service workflow

Executing javascript (question and ideas)

playsted 5 years ago in Server / Execution updated by Pieter 5 years 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 5 years 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.


Workflow Persistence

playsted 5 years ago in Server / Execution updated by Genie 5 years 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 5 years 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.



File already exists

Anonymous 6 years ago in Server / Execution updated by Gandalf 6 years 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 6 years ago

1. Open c:\windows\temp

2. Delete *.tmp files

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


Format Number tool giving error on valid numbers!

Kyle TFL 6 years ago in Server / Execution updated by Gandalf 6 years 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

Executing Warewolf service in javascript

Henry Jones 7 years ago in Server / Execution updated by Gandalf 7 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

fire and forget

Paul Cannell 8 years ago in Server / Execution updated by Gandalf 7 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.

singleton vs single call

Paul Cannell 8 years ago in Server / Execution updated by Gandalf 8 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 8 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.

anonymous 8 years ago
All workflows are re-usable via the Explorer in the Studio.
You just need to drag it from the explorer onto your new workflow to re-use it.

Be sure to map your inputs and outputs when re-using a workflow.