Add the HotDocs SmartObject to a Process
You must add the HotDocs SmartObject to a K2
process before you can use it to assemble documents or produce
answer data.
Prerequisites
Before adding the SmartObject to a process, you must:
- Register the Service Type
- Register a New Service
Instance
- Create and Execute a New HotDocs
SmartObject
To add the SmartObject to a process
When adding a HotDocs SmartObject to a K2 Process, use the following
steps as a guideline:
- Open K2 Studio.
- Create a new project or open an existing project.
- In the Solution Explorer, expand the project and create or
open a process.
- Navigate to the Event Wizards
menu.
- Drag and drop SmartObject Event
onto appropriate location on the canvas.
- In the SmartObject Wizard, click Next
add an Event Name.
- Click the Context Browser
button next to the SmartObject Method field.
- Navigate to SmartObject Server(s)
> SmartObject Server.
- Navigate to the HotDocs
SmartObject created in the K2 SmartObject Tester.
- Expand the package node and from the
packages list, expand a template node.
- Expand the Single Method node.
- Select an option:
- Click Add.
- In the SmartObject Event Wizard, click Next.
- Click the right arrow on the right-hand side of the window to display
the context browser. Open the Process/Activity
Data tab and expand Data Fields.
- In Input Mapping, drag and drop data fields from the
Context Browser into the Value column for the appropriate
Input field. This maps data from the process to fields used in the
SmartObject.
- Click Next.
- In Return Mapping, drag and drop data fields from
the Context Browser into the Value column for the appropriate
Return field. This maps the data returned from the SmartObject to
business data within the process.
- Click Next.
- Click Finish.
The new mapping appears in the process. You can now link the SmartObject
to other stages in the process.