Code Monkey home page Code Monkey logo

levi-project's People

Contributors

erandasooriyabandara avatar ganathr avatar ishanjayawardena avatar keheliya avatar umashanthi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

levi-project's Issues

Add methods to DBManager

Following methods are needed

TaskBean getTaskBean(String taskId)
ProcessInstanceBean getProcessInstanceBean (String processInstanceId)
DeploymentBean getDeploymentBean(String processId)

Retrieve TaskList for users using custom query

When a task is created for a user, set isActive attribute of TaskBean to true
When a task is completed, we should set isActive attribute of TaskBean to false.
When retrieving user tasks, write a custom query to
get taskIds from TASK_ASSIGNEE table of the DB
and from the TASK table, retrieve only the tasks for which isActive=true.

Remove methods from HibernateDao

Following methods need to be removed from the HibernateDao and add to the HqlManager.

public List getUserObjects()

public List getGroupObjects()

public List getAssignedTasks(String userId)

public List getUnassignedTasks(String groupId)

public TaskBean getTask(String taskId, String processInstanceId)

Use DBManager to access persisted data

We have several classes which use HibernateDao to store and access persisted data. This need to be removed and need to use DBManager to access and store data.

Copying .vm files to LeviEngine/templates

When extracting a lar file, copy the .vm files to LeviEngine/templates.

At the same time I'll try to find whether it is programatically possible to set the property for each extracted process

New methods to DBManager

Need the following methods in DBManager.
I will add the rest here when required

List getUnassignedTasks(String groupId, String definitionId);

  • Should retrieve unassigned tasks for this group and tasks belongs to the deployed process with this definition ID

Duplicate methods in DBManager

I found there are two methods which do the same in DBMagager. Please find the usages and make them one asap.

public Map<String, TaskBean> getActiveTasksMap(String definitionId) {
return qlManager.getActiveTasks(definitionId);
}

public Map<String, TaskBean> getActiveProcessInstances(String definitionId) {
return qlManager.getActiveTasks(definitionId);
}

Assigning task to group - handle in DB

We should be able to assign a user task to a particular group rather than to a single user

We can retrieve the group via:

((TPotentialOwner)(task.getResourceRoleArray()[0])).getResourceAssignmentExpression().getExpression().getDomNode().getChildNodes().item(0).getNodeValue()

from the user task

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.