Workflow Tutorial - NeoSOFT-Technologies/workflow-plugins GitHub Wiki

Expense Claim Workflow

Description

Employees need to submit expense forms for their managers to approve, but if they all send them by e-mail, managers will find it difficult to keep track. Hence in this workflow, we have used the email format application that would be submitted by the employees. The process consists of an approval decision task, followed by an administrative task to pay the expense claim.

The manager may choose to only reject some items on the claim, in which case the process includes an additional task to list the rejected items, so that the person who pays the expense claim can recalculate the total.

Workflow Diagram

ExpenseClaimWorkflow

You can get all the details of this workflow here.

ExpenseClaim4 ExpenseClaim5 ExpenseClaim6

Activity Explanation

Explanation for highlighted activities are as follows:


1. HTTP Endpoint

HTTP Endpoint activity handles an incoming HTTP request. It allows to specify a relative path on your workflow server's domain.

HttpEndpoint1

You need to specify Path for the incoming HTTP request as follows:

HttpEndpoint2


2. Fork

The Fork activity simply forks workflow execution into multiple branches.

CF_Fork

While adding this activity, you have to specify a list of one or more branch names. These branch names will be scheduled as activity outcomes.

CF_Fork2


3. Signal Received

Signal Received activity** suspends** workflow execution until the specified signal is received.

SignalReceived

You need to specify the name of the signal to wait for.

SignalReceived2


4. HTTP Redirect

HTTP Redirect activity writes an HTTP redirect response.

HttpRedirect1

You need to specify the redirect URL.

HttpRedirect2


5. Send Email

The Send Email Activity enables you to send email from a Workflow.

Email1

Email activity has the following settings:

  • From
  • To
  • Subject
  • Body
  • Attachments

Email3