Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Emakin performs most of the its heavy operations in on the background to achieve scalable and high performance outputs. These background operations are executed by emakin Emakin’s service agent without any user interaction.

When a new process is started initiated by a user, workflow state is recorded in the database without any further processing, and creates a couple of background jobs. Service agents pull retrieve the jobs from the queue and try to process in on the background. If an error occurs while processing the a job, transaction state is rollbacked and error state is reported to the system administrators. When an administrator resolves the an issue, job is re-queued in the system, from the job manager, to the process again. Some of the errors are automatically recovered by the system and queued again with time delay. Image Removed

...

Service agents use multiple threads, and can also be deployed to any number of hardware instances to perform parallel execution. Jobs are executed in order of priority, and a single service agent can complete 600 jobs per minute for the basic workflow operations. This number is highly dependent on the job definition and hardware specifications.

Job Details

Each job has the following properties:

Type
Type of a job. 

...

State
State of a job. Can be one of the following values; Waiting, Processing, Error, Completed, Aborted.

...

For "Aborted" and "Completed" states, job is automatically deleted from the system if the "Delete After" date passed. Image Removed

...

Job Log

Each job contains a log about detailed information of what is performed in the background. Each log line has an in log level like Debug, Information, Warning, Error.Image Removed

...

Job Types

Workflow Jobs

...

Created when the initiate type workflow task is scheduled to start periodically. Created by the Scheduled Task per task definition. You can find more details in the Task Evaluation section. 

Work Item Evaluation

Created when the normal type workflow task is scheduled to check periodically. Created by the Scheduled Task per work item instance. You can find more details in the Task Evaluation section.

Work Item Processing

...

Emakin uses following default configuration to manage the job queue.

Name

Internal Name

Priority

Delete After (days)
(No) 

Retry Duration (min)
(No) 

Max Retry
(No) 

Max Retry Result
(Abort) 

Error Result
(Error) 

Alert Error
(True) 

Alert Abort
(False) 

Scheduled Task

Workflow.ScheduledTaskHigh90Task EvaluationWorkflow.Task.EvaluateHigh180Work Item EvaluationWorkflow.WorkItem.Evaluate

Timeout (min)

Alert To
(Domain Admin)

Document Full Text Indexing

Workflow.Document.FullText

Low

2

60

20





10

System Admin

Domain Deletion

Workflow.Domain.Delete

Low








None

System Admin

Domain Upgrade

Workflow.Domain.Upgrade

Low

180






True

10

System Admin

Form Data Xml Database Replication

Workflow.FormData.XmlDatabase

Normal

2

60

10





10

System Admin

Xml Database Removal

Workflow.FormData.XmlDatabaseRemover

Normal

2

60

10





10

System Admin

Full Text Removal

Workflow.FullText.Remover

Low

2

60

10





10

System Admin

Instance Xml Database Replication

Workflow.Instance.XmlDatabase

Normal

2

60

10





10

System Admin

E-Mail Message Send

Workflow.Message.Send

Low

90

5

10



False

False

10


Scheduled Task

Workflow.ScheduledTask

High

10







10


Deadlined Work Item

Workflow.WorkItem.Deadline

High

180

10

20




True

60


Instance Full Text Indexing

Workflow.Instance.FullText

Low

2

10

10





10

System Admin

Work Item Processing

Workflow.WorkItem.Process

High

180

10

20

Error



True

Deadlined

60


Work Item Reminder

Workflow.WorkItem.

Deadline

Reminder

High

180

60







10

20

System Admin

True

Work Item

Reminder

Evaluation

Workflow.WorkItem.

Reminder

Evaluate

High

180

10

20





60

Form Data Xml Database Replication


Task Evaluation

Workflow.

FormData

Task.

XmlDatabase

Evaluate

Normal

High

2

180

10







60

Instance Xml Database


File Replication

Workflow.

Instance

File.

XmlDatabase

Replication

Normal

2

30

1440

10





10

Xml Database Removal

System Admin

Instance Terminate

Workflow.

FormData

Instance.

XmlDatabaseRemover

Terminate

Normal

Low

2

180

10Work Item Full Text Indexing







60


Channel Synchronization

Workflow.

WorkItem

Channel.

FullText

MailSync

Low

Normal

2

20

10

Document

3





60


Case Full Text Indexing

Workflow.

Document

Case.FullText

Low

220Full Text Removal

20







10

System Admin

Case Deadline Notification

Workflow.

FullText

Case.

Remover

Deadline

High

Low

180

2







60

10E-Mail Message Send

System Admin

Case Reminder

Workflow.

Message

Case.

Send

Reminder

Low

Normal

90

60

5







60

10FalseFalseDomain UpgradeWorkflow.Domain.UpgradeLow180TrueDomain DeletionWorkflow.Domain.DeleteLow

System Admin

Case Violation Notification

Workflow.Case.Violation

Normal

60







10

System Admin