Common functions for service process workflows and children of service process workflows.
Inheritance Hierarchy
Scanjour.Workflow4.ActivityLibrary.ServiceProcessServiceFunctions
Namespace: Scanjour.Workflow4.ActivityLibrary.ServiceProcess
Assembly: Scanjour.Workflow4.ActivityLibrary_23.1.0.0 (in Scanjour.Workflow4.ActivityLibrary_23.1.0.0.dll) Version: 23.1.0.0 (23.1.0.0)
Syntax
The ServiceFunctions type exposes the following members.
Methods
Name | Description | |
---|---|---|
Addcontacts |
Add a contact to a contact array
| |
AddDocuments |
Add a document to a document array
| |
CalculateDeadline |
Calculate a deadline based on the currect date, a due date and a time span as follows:
Due date in past
deadline: create date.
Due date in greater than 72h from current date.
timespan gt 0: current date + time span.
timespan lt 0: due date + timespan.
Due date is less than 72h from current date.
timespan gt 0: current date + (due date - current date)/3.
timespan lt 0: due date - (due date - current date)/3*2.
Due date missing:
timespan gt 0: current date + time span.
timespan lt 0: no deadline.
| |
GetContact |
Locate an employee or contact.
If an email address is available this is used to find the contact.
The username is located in the employee register, by summary and then by namecode.
If not found the username is located in the contact register, by summary and then by namecode.
| |
GetContactByEmail |
Gets contact from email
| |
GetContactByName |
Gets contact from name or namecode
| |
GetContactByNameCodes |
Get contacts from name types and namecodes.
| |
GetDistributionDeadline |
Getting deadline for Distribution phase
| |
GetRequisitionContent |
Extract information from the requisition
| |
GetServiceId |
Retrieve the service id for a workflow instance.
| |
GetServiceName |
Returns the service name.
| |
GetServiceParameters |
Retrieve the service process parameters.
| |
GetValidDeadline |
Returns provided deadline if in future, or DateTime.MinValue
| |
GetXmlDocument |
Gets the Xml document from the xml record.
| |
LogException |
Logs the exception to the event log.
The activity context.The activity display name.The exception. |
See Also