statemachine

Multiple ModificationForms in Sharepoint Workflow

Hello everybody, i am working on a Sharepoint Server 2007 Statemachine Workflow. Until now i have a few states and an custom Association/InitiationForm which i created with InfoPath 2007. At the moment i have a Problem with Modification forms. The modification link in the state page of my workflow is shown and leads on click to my InfoP...

What is the best solution? Using WF StateMachine to follow user states on a web application.

I was looking at WF and was wondering if it would be best to use the StateMachine workflow to follow a users state. i.e. user is anonymous, user is known but not authenticated, user is known and authenticated. would this be a good way to go about solving this regular issue? ...

Non-deterministic finite state machines in software development?

Recently I've been thinking about finite state machines and how I would implement them in software (programming language doesn't matter). My understanding is that deterministic state machines are in widespread use (parses/lexers, compilers and so on). Okay, that's great. But what's the matter with non-deterministic state machines? I kn...

Sharepoint StateMachine : Handling multiple responses to multiple created tasks

Hi, I created a StateMachine workflow for sharepoint and at one state, I create multiple tasks using a replicator. The number of tasks created is variable. I need to handle the OnTaskChanged event for all the tasks I created which seems impossible as one event handler can only be associated with one task. I can use a restrictive ...

Passing input to a state machine (c#)

I'll try to explain my scenario as best i can; At each application tick I query the current state of the keyboard and mouse and wrap them in individual classes and data structures. For the keyboard it's an array of my Keys enum (one item for each of the keys that are currently pressed) and for the mouse it's a class containing coordinat...

uses for state machines

In what areas of programming would I use state machines ? Why ? How could I implement one ? EDIT: please provide a practical example , if it's not too much to ask . ...

Are there any tools to help the user to design a State Machine to be consumed by my application?

When reading this question I remembered there was something I have been researching for a while now and I though Stackoverflow could be of help. I have created a framework that handles applications as state machines. Currently all the state business logic and transactions are handled via Java code. I was looking for some UI implementat...

Generic Architecture for a Network Server/Client using a State Machine

HI, All, so, I inventedmade up a simple protocol that I want to use for a client to talk to a server. It's the typical (I think) three-phase layout: Connection Establishment (will eventually include capability negotiation) Actual Data Exchange - packets are happily travelling to and fro', get interpreted by the respective receiver wh...

Cannot compile FSM sample code

There is a nice state machine tutorial called UML Tutorial: Finite State Machines by Robert C. Martin. But I can't compile the sample code it provides. I got *FsmTest.cpp(46) : error C2664: 'SetState' : cannot convert parameter 1 from 'class UnlockedState *' to 'class TurnstileState ' Please, help. Thanks. class Turnstile { public: vi...

State Machine Implementations

I am trying to build a board game ... And looks like it has to be implemented using a state machine.. I know of the State pattern from GoF, but I am sure there must be other ways to implement state machine. Please let me know.. if you know of any articles or books that contains details about different implementation (trade off of each ...

How to call Events in Interfaces C#?

So i have a design problem. I have a mouse class that has delegates and events. ie MouseButtonPressed, MouseMoved. and such that are getting called by a state engine. What i want to have happen is to create an interface like IClickable or IDraggable or somthing and have events inside those interfaces that get called when the mouse even...

Any recommendation for rails workflow implementations?

Anybody have experience with Rails workflow plugins? Route/OpenWFEru. I am looking for CMS type workflow with states like edit, submit, approve, rollback, based on roles. Is this plugin overkill? Would I be better off just doing the same thing with a state machine (AASM) and acts as auditable/acts as versioned? ...

Truth tables in code? How to structure state machine?

I have a (somewhat) large truth table / state machine that I need to implement in my code (embedded C). I anticipate the behavior specification of this state machine to change in the future, and so I'd like to keep this easily modifiable in the future. My truth table has 4 inputs and 4 outputs. I have it all in an Excel spreadsheet, and...

[WPF] What's the best way to implement a UI state machine?

In my program I have three distinct UI states (Normal, Success, and Error) and in each one the controls are visible/hidden, enabled/disabled, the colors change, labels say different things...etc. and in my code-behind I basically want to be able to say ChangeWindowState(UI.Normal); So my question is how best to implement the control cha...

State Machine Workflow designer for Windows WF

Hi, I want a designer for State Machine Windows WF, I find a sample code from microsoft and host visual studio desginer of Sequence Workflow in a Windows app, but I can't use it for State Machine , Is there any desginer for State Machine or can I host visual studio in another windows app? Thanks ...

Has anyone used "state machine" like schema in your project?

Define everything to do when something happens, I really appreciate that, but never have tried that yet. my Q is : How to design a state machine based system? ...

Which programming languages support states on the language-level?

UnrealScript has always impressed me, somewhat, with it its intrinsic support for states (and latent functions) by grouping/overloading functions and fields into blocks like: state() SomeState { ... function void Foo() { GotoState('SomeOtherState'); } ... } Which is quite a bit cleaner than using loads of s...

How have you documented a state machine for non-techincal business user audience?

We have a state machine that we use to implement a workflow. A state machine diagram fits our needs for a technical audience but I looking for the best way to present the state machine to the business units in either diagram of written format. What have you done in the past that has communicated the business process yet did not confuse...

implementing a state machine using the "yield" keyword

Is it feasible to use the yield keyword to implement a simple state machine as shown here. To me it looks like the C# compiler has done the hard work for you as it internally implements a state machine to make the yield statement work. Can you piggy-back on top of the work the compiler is already doing and get it to implement most of th...

General proof of equivalence of two FSMs in finite time?

Does a general proof exist for the equivalence of two (deterministic) finite state machines that always takes finite time? That is, given two FSMs, can you prove that given the same inputs they will always produce the same outputs without actually needing to execute the FSMs (which could be non-terminating?). If such a proof does exist, ...