PublicAPI.Processes.WorkflowTaskBaseELMA API Documentation
Basic class of process tasks
Access path: PublicAPI.Processes.WorkflowTaskBase
Methods

  NameDescription
Public methodAddComment(TaskBase, String)
Add a comment to the process task
Public methodAddComment(TaskBase, String, User)
Public methodCheckFilter
Checks if the filter is correct (main check for EQL) otherwise an exception is invoked
Public methodCompleteTask(TaskBase)
Complete the task with connector to the next event
Public methodCompleteTask(TaskBase, String)
Complete the task by a particular connector
Public methodCount 
Returns the total number of entities
Public methodCount(IEntityFilter)
Returns the number of entities by filter
Public methodCreate
Create New Entity (without a Database entry)
Public methodDelete
Delete Entity in Database
Public methodFilter
Creates an assistant for working with the "Workflow Task Base Class Extension" object filter
Public methodFind(FetchOptions)
Find entities according to the fetch options
Public methodFind(String)
Public methodFind(IEntityFilter, FetchOptions)
Find entities according to filter and fetch options
Public methodFindByIdArray
Find All Entities by Array IDs
Public methodGetActiveTasks(WorkflowInstance)
Get all the active tasks on the process instance
Public methodGetActiveTasks(WorkflowInstance, Boolean)
Get all the active tasks on the process instance
Public methodIsDirty
Check, if there are unsaved changes in the entity
Public methodIsNew
Check, if the entity is new (not saved in Database)
Public methodLoad(Guid)
Load by UID. If not found, an exception is invoked
Public methodLoad(Int64)
Load by ID. If not found, an exception is invoked
Public methodLoadOrCreate(Guid)
Load by UID. If not found, the new entity is returned
Public methodLoadOrCreate(Int64)
Load by ID. If not found, the new entity is returned
Public methodLoadOrNull(Guid)
Load by UID. If not found, null is returned
Public methodLoadOrNull(Int64)
Load by ID. If not found, null is returned
Public methodReAssign(TaskBase, User, DateTime)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, Comment)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, String)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime, Comment)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime, TaskPriority)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime, String)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime, TaskPriority, Comment)
Reassign the task
Public methodReAssign(TaskBase, User, DateTime, DateTime, TaskPriority, String)
Reassign the task
Public methodRefresh
Refresh (Reread) Entity from Database
Public methodSave
Save Entity in Database
Public methodSetFactWorkLog(TaskBase, Int64)
Set fact time report, in minutes
Public methodSetFactWorkLog(TaskBase, Int64, DateTime)
Set fact time report, in minutes
Public methodSetFactWorkLog(TaskBase, Int64, String)
Set fact time report, in minutes
Public methodSetFactWorkLog(TaskBase, Int64, DateTime, String)
Add fact time report
Public methodSetFactWorkLogDays(TaskBase, Int64)
Add fact time report, in days
Public methodSetFactWorkLogDays(TaskBase, Int64, DateTime)
Add fact time report, in days
Public methodSetFactWorkLogDays(TaskBase, Int64, String)
Add fact time report, in days
Public methodSetFactWorkLogDays(TaskBase, Int64, DateTime, String)
Add fact time report, in days
Public methodSetFactWorkLogHours(TaskBase, Int64)
Add fact time report, in hours
Public methodSetFactWorkLogHours(TaskBase, Int64, DateTime)
Add fact time report, in hours
Public methodSetFactWorkLogHours(TaskBase, Int64, String)
Add fact time report, in hours
Public methodSetFactWorkLogHours(TaskBase, Int64, DateTime, String)
Add fact time report, in hours
Public methodSetWorkflowTaskEndDate(TaskBase, DateTime)
Change task end date
Public methodSetWorkflowTaskEndDate(TaskBase, DateTime, DateTime)
Change task end date
Public methodSwapTask
Reassign all the tasks from one user to another
Back to Top
Properties

  NameDescription
Public propertyTypeUid
Returns the unique object identifier "Workflow Task Base Class Extension"
Public propertyWorkflowTask
Process Task
Back to Top
Remarks

Section containing methods for managing process tasks
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