Basic class of process tasks
Access path: PublicAPI.Processes.WorkflowTaskBaseMethods
Name | Description | |
---|---|---|
AddComment(TaskBase, String) |
Add a comment to the process task
| |
AddComment(TaskBase, String, User) | ||
CheckFilter |
Checks if the filter is correct (main check for EQL) otherwise an exception is invoked
| |
CompleteTask(TaskBase) |
Complete the task with connector to the next event
| |
CompleteTask(TaskBase, String) |
Complete the task by a particular connector
| |
Count |
Returns the total number of entities
| |
Count(IEntityFilter) |
Returns the number of entities by filter
| |
Create |
Create New Entity (without a Database entry)
| |
Delete |
Delete Entity in Database
| |
Filter |
Creates an assistant for working with the "Workflow Task Base Class Extension" object filter
| |
Find(FetchOptions) |
Find entities according to the fetch options
| |
Find(String) | ||
Find(IEntityFilter, FetchOptions) |
Find entities according to filter and fetch options
| |
FindByIdArray |
Find All Entities by Array IDs
| |
GetActiveTasks(WorkflowInstance) |
Get all the active tasks on the process instance
| |
GetActiveTasks(WorkflowInstance, Boolean) |
Get all the active tasks on the process instance
| |
IsDirty |
Check, if there are unsaved changes in the entity
| |
IsNew |
Check, if the entity is new (not saved in Database)
| |
Load(Guid) |
Load by UID. If not found, an exception is invoked
| |
Load(Int64) |
Load by ID. If not found, an exception is invoked
| |
LoadOrCreate(Guid) |
Load by UID. If not found, the new entity is returned
| |
LoadOrCreate(Int64) |
Load by ID. If not found, the new entity is returned
| |
LoadOrNull(Guid) |
Load by UID. If not found, null is returned
| |
LoadOrNull(Int64) |
Load by ID. If not found, null is returned
| |
ReAssign(TaskBase, User, DateTime) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, Comment) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, String) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime, Comment) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime, TaskPriority) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime, String) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime, TaskPriority, Comment) |
Reassign the task
| |
ReAssign(TaskBase, User, DateTime, DateTime, TaskPriority, String) |
Reassign the task
| |
Refresh |
Refresh (Reread) Entity from Database
| |
Save |
Save Entity in Database
| |
SetFactWorkLog(TaskBase, Int64) |
Set fact time report, in minutes
| |
SetFactWorkLog(TaskBase, Int64, DateTime) |
Set fact time report, in minutes
| |
SetFactWorkLog(TaskBase, Int64, String) |
Set fact time report, in minutes
| |
SetFactWorkLog(TaskBase, Int64, DateTime, String) |
Add fact time report
| |
SetFactWorkLogDays(TaskBase, Int64) |
Add fact time report, in days
| |
SetFactWorkLogDays(TaskBase, Int64, DateTime) |
Add fact time report, in days
| |
SetFactWorkLogDays(TaskBase, Int64, String) |
Add fact time report, in days
| |
SetFactWorkLogDays(TaskBase, Int64, DateTime, String) |
Add fact time report, in days
| |
SetFactWorkLogHours(TaskBase, Int64) |
Add fact time report, in hours
| |
SetFactWorkLogHours(TaskBase, Int64, DateTime) |
Add fact time report, in hours
| |
SetFactWorkLogHours(TaskBase, Int64, String) |
Add fact time report, in hours
| |
SetFactWorkLogHours(TaskBase, Int64, DateTime, String) |
Add fact time report, in hours
| |
SetWorkflowTaskEndDate(TaskBase, DateTime) |
Change task end date
| |
SetWorkflowTaskEndDate(TaskBase, DateTime, DateTime) |
Change task end date
| |
SwapTask |
Reassign all the tasks from one user to another
|
Properties
Name | Description | |
---|---|---|
TypeUid |
Returns the unique object identifier "Workflow Task Base Class Extension"
| |
WorkflowTask |
Process Task
|
Remarks
Examples
Get a task to work with
var myWorkflowTask = PublicAPI.Processes.WorkflowTaskBase.Load(35);
Add a comment to our task
PublicAPI.Processes.WorkflowTaskBase.AddComment(myWorkflowTask, "The task is loaded successfully!");
Add the task time report
PublicAPI.Processes.WorkflowTaskBase.SetFactWorkLogHours(myWorkflowTask, 4, DateTime.Now, "The task took 4 hours");
Reassign the task to another user
PublicAPI.Processes.WorkflowTaskBase.ReAssign(myWorkflowTask, context.UserNewExecutor, DateTime.Now.AddDays(4), "The task is reassigned");
Change the end date of the process task
PublicAPI.Processes.WorkflowTaskBase.SetWorkflowTaskEndDate(myWorkflowTask, DateTime.Now.AddWeeks(2));
Reassign all tasks to another user
PublicAPI.Processes.WorkflowTaskBase.SwapTask(context.UserNewExecutor, context.UserNextExecutor);
See Also