## {i18n}Workflows{/i18n}

{i18n}Workflow is a description of a document's lifecycle. It is made up of workflow states, which describe where in the lifecycle the document is, and workflow transitions, which describe the next steps within the lifecycle of the document.{/i18n}

{i18n}Create a new workflow{/i18n}

{foreach item=oWidget from=$add_fields} {$oWidget->render()} {/foreach}

{if $aWorkflow}

### {i18n}Existing workflows{/i18n}

{i18n}Select a workflow to modify. To enable a disabled workflow, edit it and set a proper starting state.{/i18n}

{i18n}Name{/i18n} | {i18n}Status{/i18n} | {i18n}Edit{/i18n} |
--- | --- | --- | ---

{foreach from=$aWorkflow item=oWorkflow} {assign var="startId" value=$oWorkflow->getStartStateId()}

{$oWorkflow->getName()} | {if $startId===NULL}{* need spaces, or smarty generates broken code *} {i18n}Disabled{/i18n} {else} {i18n}Enabled{/i18n} {/if} | {i18n}Edit{/i18n} | {if $startId!==NULL}{i18n}Disable{/i18n} {else} {/if}
{/foreach}

{/if}