Skip to content

Anar-Framework/anar-lib-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Workflow Utility Library of Anar Framewok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages