singleton vs single call

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


Server crashes cant save workflow

Paul Cannell 5 years ago in Server • updated by Gandalf 4 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 4 years ago
Thanks Paul. We are looking into your issue.
anonymous 5 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.

Can you edit variables at run time?

Anonymous 5 years ago in Server • updated by Gandalf 5 years ago 0
Gandalf 5 years ago
Currently this is not possible. Once a workflow has been called, it will run its course given the inputs provided.
Once the User interaction (Webpages) piece is done, you will be able to interact with the workflow if its built into the process.

Do you support state machines?

Anonymous 5 years ago in Server • updated by anonymous 5 years ago 0
anonymous 5 years ago
No we do not. We currently only support flowcharts.

How do I turn off security?

Anonymous 6 years ago in Server / Execution • updated by Gandalf 6 years ago 0
Im working at home and my network is secure, I dont want to have to set permissions on everything all the time.
Gandalf 6 years ago
From release onwards we have introduced a Public group.

It is not a windows group, its internal to Warewolf.

1. Open Security Settings
2. Under the Windows Group heading, you will see a Public group.
3. Give this group Administrator rights.
4. Click Save

Any user can now do anything on that Warewolf.

Warewolf server crashed

Alex Hampel 6 years ago in Server • updated by Gandalf 6 years ago 0

I tried to click 'edit' on a service proc in my designer and the edit window opened but the progress wheel just remained spinning.

Wareworf server then crashed.

Details from the Application Log:


Faulting application name: Warewolf Server.exe, version:, time stamp: 0x51decfcb

Faulting module name: clr.dll, version: 4.0.30319.18052, time stamp: 0x5173c114

Exception code: 0xc0000005

Fault offset: 0x000000000005b074

Faulting process id: 0xcdc

Faulting application start time: 0x01ce8385673cd772

Faulting application path: C:\Program Files (x86)\Warewolf\Server\Warewolf Server.exe

Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll

Report Id: 030305a3-f431-11e2-ac0c-70f3951b032e


Application: Warewolf Server.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an internal error in the .NET Runtime at IP 000007FEF07AB074 (000007FEF0750000) with exit code 80131506.


Can I return json from a service call?

Chas Digal 6 years ago in Server / Execution • updated by Gandalf 6 years ago 1

Most API's these days allow a variety of return types. What types can I offer without having to build it into everything I do and still have it as XML

service execution
Gandalf 6 years ago

You can return XML or JSON. By default the system will return XML from any service call. The caller can define the response type as json by placing a .json after the name of the service they are calling. eg


Updating Password for db

Alex Hampel 6 years ago in Server / Resources • updated by Gandalf 6 years ago 0

My windows password used to connect to this sql server needed to be changed today. I open up my source to enter the new password.

Once the connection test succeeds I am asked to select a db. It would be nice if I didn't have to re-select the db as I'm sure this could lead to the incorrect db being selected.

Gandalf 6 years ago

Good thinking. Thanks


Human interaction / webpage

Chas Digal 6 years ago in Server / Execution • updated by Gandalf 6 years ago 0

Front ends or webpages would be awesome.

Gandalf 6 years ago
Yes, this is now in the pipeline!