public interface HumanFunctions
Modifier and Type | Method and Description |
---|---|
void |
allocateTodo(ExecutionContext context,
RecordHolder todo,
RecordHolder person)
Allocates the specified todo to the person.
|
void |
deleteSavedDocuments(ExecutionContext context,
SetHolder documents)
Deletes the specified saved documents.
|
RecordHolder |
getCurrentTodo(ExecutionContext context)
Returns the currently opened to-do.
|
SetHolder |
getTodoCurrentAssignees(ExecutionContext context,
RecordHolder todo)
Returns a set of persons the specified todo is currently issued (visible) to, taking into
account also delegation, rejection and substitution.
|
SetHolder |
getTodoIdsFor(ExecutionContext ctx,
RecordHolder person,
String titlePattern)
Returns a set of active todo ids assigned to the specified person according to the criteria.
|
SetHolder |
getTodoPerformers(ExecutionContext context,
RecordHolder todo)
Returns a set of the original performers of the specified todo, as given by the corresponding
task.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person)
Returns a set of active todos assigned to the specified person.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person,
Boolean includeAllocatedByOthers)
Returns a set of active todos assigned to the specified person.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person,
TodoListCriteria todoListCriteria)
Returns a set of active todos assigned to the specified person according to the criteria.
|
RecordHolder |
getTodoSubmitter(ExecutionContext context,
RecordHolder todo)
If the specified todo is in the "Accomplished" state, the function returns the person who
submitted that todo.
|
MapHolder |
getUIHistory(ExecutionContext context)
A function which returns UI history.
|
void |
persist(ExecutionContext ctx) |
void |
reassignTodo(ExecutionContext context,
RecordHolder todo,
SetHolder performers)
Changes the set of performers of the specified todo.
|
void |
rejectTodo(ExecutionContext context,
RecordHolder todo,
SetHolder persons,
String reason)
Reject todo for all specified persons.
|
void |
resetTodo(ExecutionContext ctx,
RecordHolder todo)
Reset state of the todo.
|
ListHolder |
submit(ExecutionContext ctx)
Submits a form that do not use evaluation levels:
Todo Form: Submits todos that do not use evaluation levels.
|
void |
unallocateTodo(ExecutionContext context,
RecordHolder todo)
Unallocates todo.
|
RecordHolder getTodoSubmitter(ExecutionContext context, RecordHolder todo) throws ErrorException
context
- todo
- ErrorException
SetHolder getTodoCurrentAssignees(ExecutionContext context, RecordHolder todo) throws ErrorException
context
- todo
- ErrorException
SetHolder getTodoPerformers(ExecutionContext context, RecordHolder todo) throws ErrorException
context
- todo
- ErrorException
SetHolder getTodosFor(ExecutionContext context, RecordHolder person, TodoListCriteria todoListCriteria) throws ErrorException
context
- person
- todoListCriteria
- ErrorException
SetHolder getTodosFor(ExecutionContext context, RecordHolder person, Boolean includeAllocatedByOthers) throws ErrorException
context
- person
- includeAllocatedByOthers
- ErrorException
SetHolder getTodosFor(ExecutionContext context, RecordHolder person) throws ErrorException
context
- person
- ErrorException
SetHolder getTodoIdsFor(ExecutionContext ctx, RecordHolder person, String titlePattern) throws ErrorException
ctx
- person
- titlePattern
- ErrorException
void unallocateTodo(ExecutionContext context, RecordHolder todo) throws ErrorException
context
- todo
- ErrorException
void allocateTodo(ExecutionContext context, RecordHolder todo, RecordHolder person) throws ErrorException
context
- todo
- person
- ErrorException
void reassignTodo(ExecutionContext context, RecordHolder todo, SetHolder performers) throws ErrorException
context
- todo
- performers
- ErrorException
void deleteSavedDocuments(ExecutionContext context, SetHolder documents) throws ErrorException
context
- documents
- ErrorException
MapHolder getUIHistory(ExecutionContext context) throws ErrorException
context
- ErrorException
RecordHolder getCurrentTodo(ExecutionContext context)
context
- void resetTodo(ExecutionContext ctx, RecordHolder todo) throws ErrorException
ctx
- todo
- ErrorException
void rejectTodo(ExecutionContext context, RecordHolder todo, SetHolder persons, String reason)
context
- todo
- persons
- reason
- ListHolder submit(ExecutionContext ctx) throws ErrorException, OptimisticLockException
ctx
- ErrorException
OptimisticLockException
void persist(ExecutionContext ctx) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.