Skip to content
Mohammad Badar Hashimi edited this page Jan 30, 2020 · 1 revision

Workflow Library of Anar Framework

Usage Guide:

add the following dependency to pom.xml

		<dependency>
			<ROLEId>af.gov.anar.lib</ROLEId>
			<artifactId>anar-lib-workflow</artifactId>
			<version>${project.version}</version>
		</dependency>

Sample Workflow

{
   "steps":[
        {"name":"Open", "transitions":[
                {"name":"Reject", "toStep":"Rejected", "CommentRequired": true},
                {"name":"Close","toStep":"Closed","resolutions":["Completed", "Incomplete", "Duplicate"], "CommentRequired": true}
        ],
        "requiredAuthorities": ["ADMIN_ROLE"],
        },
        {"name":"Reopened", "transitions":[
                {"name":"Reject", "toStep":"Rejected", "CommentRequired": true},
                {"name":"Close", "toStep":"Closed", "resolutions":["Completed", "Incomplete", "Duplicate"], "CommentRequired": true}
        ],
        "requiredAuthorities": [ "ADMIN_ROLE"],
        },
        {"name":"Rejected", "transitions":[
                {"name":"Reopen", "toStep":"Reopened", "CommentRequired": false},
                {"name":"Close", "toStep":"Closed", "resolutions":["Completed", "Incomplete", "Duplicate"], "CommentRequired": true}
        ],
        "requiredAuthorities": ["ADMIN_ROLE"],
        },
        {"name":"Closed", "transitions":[ ],
        "requiredAuthorities": ["ADMIN_ROLE"],
        }
    ]
}

Features

  • Manage workflow in a RDBMS database
  • Flexible and easy JSON based workflow
  • Configurable Steps
  • Transition Support
  • Comment required support
  • Authority and access management
  • Resolutions Support
  • Workflow Parser

Documentation

Refer to this repository Wiki section. https://github.com/Anar-Framework/anar-lib-workflow/wiki

Clone this wiki locally