0
Voltooid

singleton vs single call

Paul Cannell 11 jaar geleden in Server / Execution bijgewerkt door Gandalf 11 jaar geleden 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)

Hypothetical 
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
Antwoord
Gandalf 11 jaar geleden
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.

0
Fixed

Server crashes cant save workflow

Paul Cannell 11 jaar geleden in Server bijgewerkt door Gandalf 10 jaar geleden 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?
 
Antwoord
Gandalf 10 jaar geleden
Thanks Paul. We are looking into your issue.
0
Beantwoord

Within designer view, are you able to abstract that process flow into a process object that could be used in higher level processes?

Anoniem 11 jaar geleden in Server / Execution bijgewerkt door anonymous 11 jaar geleden 0
Antwoord
anonymous 11 jaar geleden
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.
0
Beantwoord

Can you edit variables at run time?

Anoniem 11 jaar geleden in Server bijgewerkt door Gandalf 11 jaar geleden 0
Antwoord
Gandalf 11 jaar geleden
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.
0
Beantwoord

Do you support state machines?

Anoniem 11 jaar geleden in Server bijgewerkt door anonymous 11 jaar geleden 0
Antwoord
anonymous 11 jaar geleden
No we do not. We currently only support flowcharts.
0
Beantwoord

How do I turn off security?

Anoniem 11 jaar geleden in Server / Execution bijgewerkt door Gandalf 11 jaar geleden 0
Im working at home and my network is secure, I dont want to have to set permissions on everything all the time.
Antwoord
Gandalf 11 jaar geleden
From release 0.4.2.3 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.
0
Fixed

Warewolf server crashed

Alex Hampel 11 jaar geleden in Server bijgewerkt door Gandalf 11 jaar geleden 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:


1.

Faulting application name: Warewolf Server.exe, version: 0.3.1.1, 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



2.

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.


+2
Beantwoord

Can I return json from a service call?

Chas Digal 11 jaar geleden in Server / Execution bijgewerkt door Gandalf 11 jaar geleden 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
Antwoord
Gandalf 11 jaar geleden

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
http://127.0.0.1:1234/services/BringBackTheATeam.json?VoteMail=...

+1
Voltooid

Updating Password for db

Alex Hampel 11 jaar geleden in Server / Resources bijgewerkt door Gandalf 11 jaar geleden 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.


Antwoord
Gandalf 11 jaar geleden

Good thinking. Thanks

+1
Planned

Human interaction / webpage

Chas Digal 11 jaar geleden in Server / Execution bijgewerkt door Gandalf 11 jaar geleden 0

Front ends or webpages would be awesome.

web
Antwoord
Gandalf 11 jaar geleden
Yes, this is now in the pipeline!