Start Work

This method is used to start work items in the PAW work queue whose status is “Idle” and that are bound to a specific process.


⬅️INPUT

Parameter

Type

Required

Description

ProcessName

String

✅*Yes

Process name (*OverloadGroup)

WorkId

Guid?

✅*Yes

Work ID (*OverloadGroup)

DescriptionFilter

String

❌No

Description filter

StatusNoteFilter

String

❌No

Status note filter

NoteFilter

String

❌No

Note filter


➡️OUTPUT

Parameter

Type

Description

Id

Guid?

Started work ID

RelatedWorkId

Guid?

Related work ID

StatusNote

String

Status note

Note

String

Note

InputAttachments

List<PAWAttachment>

Input attachments

Input

DataTable

Work input data

AdditionalData

DataTable

Additional data

AdditionalDataAttachments

List<PAWAttachment>

Additional data files

IsStartWorkSuccessful

Boolean

Success status

StartWorkMessage

String

Result message

RunNumber

Int32

Run number


🎯 Purpose

  • Start work items that are idle

  • Update the work status as “Idle” → “Running”

  • Prevent the same work item from being run by more than one bot


⚙️ How It Works

  • When a work item is started, its status is automatically updated to “Running”

  • A work item in this status cannot be started again by another bot

  • If there is more than one work item in the same process:

    • If no priority is defined → they are run in order of creation date

    • If a priority is defined → the prioritized work item is run first


🔎 Filtering and Selection Parameters

🔹 Work Id

Used to start a specific work item.
That work item is run directly by giving its ID.


🔹 Description Filter

Enables work items to be filtered by the description field.
Work items with a specific description can be selected and run.


🔹 Status Note Filter

Filters work items by the status description field.

Supported characters:

  • * → Text contained within

  • ? → Replaces a single character


🔹 Note Filter

Enables work items to be filtered by the note field.

Supported characters:

  • * → Text contained within

  • ? → Replaces a single character


📥 Output Parameters

🔹 Input (Collection)

Lists the input data of the work item.
This data contains all input fields defined when the process is started.


🔹 Input Attachments

Lists the attached documents of the work item in detail.

Fields:

  • Field Name: The field name coming from the template of the process

  • File Name: File name + extension

  • File Name Without Extension: File name without extension

  • Extension: File extension

  • Mime Type: The media type of the file (e.g. application/pdf)

  • Data: The content of the file in Binary format


⚠️ Important Notes

  • The same work item cannot be started again while it is in the “Running” status

  • A more specific selection can be made by using the filtering parameters together

  • Attached documents are always returned in Binary format


💡 Summary

The Start Work method enables the tasks in the work queue to be started in a controlled, prioritized and filterable way. It also provides all input data and attached documents of the work item for use within the process.