---
name: "Web::Machine::FSM"
section: "3pm"
platform: "linux"
package: "libweb-machine-perl"
version: "0.17-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Web::Machine::FSM"
---

# Web::Machine::FSM(3pm)

The State Machine runner

## NAME

Web::Machine::FSM - The State Machine runner

## VERSION

version 0.17

## SYNOPSIS

```
  use Web::Machine::FSM;
```

## DESCRIPTION

This is the heart of the Web::Machine, this is the thing which runs the state machine whose states are contained in the Web::Machine::FSM::States module.

## METHODS

- "new ( %params )"

  This accepts two `%params`, the first is a boolean to indicate if you should turn on tracing or not, and the second is optional name of the HTTP header in which to place the tracing information.

- "tracing"

  Are we tracing or not?

- "tracing\_header"

  Accessor for the HTTP header name to store tracing data in. This default to `"X-Web-Machine-Trace"`.

- "run ( $resource )"

  Given a Web::Machine::Resource instance, this will execute the state machine.

## SEE ALSO

- Web Machine state diagram \<https://github.com/Webmachine/webmachine/wiki/Diagram\>

  ## SUPPORT

bugs may be submitted through \<https://github.com/houseabsolute/webmachine-perl/issues\>.

## AUTHORS

- •

  Stevan Little \<stevan@cpan.org\>

- •

  Dave Rolsky \<autarch@urth.org\>

## COPYRIGHT AND LICENCE

This software is copyright (c) 2016 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
