To create a new solution status for checking in solutions, you must first create the new solution status, create an access right to associate with it, and then create a new task definition to associate with the status. The status access right is then assigned to organizations/roles so users can work on the solution when it is in the given status.
Defining a New Solution Status
Open the BCC and navigate to Service Admin Publishing > Service Admin. Create a new project with a logical name such as “Creating New Solution Status”.
Click on the project’s Assets tab. Click on the gray Add asset to project link. In the Asset Picker, choose the
ServiceRepository
and add an asset of type SolutionStatus.Click on Create New and give your solution status a display name. Note the repository id of the new status, to use in the next set of instructions. Click Apply to save the solution status’s name. Click the Back to the project’s assets link.
In the project’s Tasks tab, choose the Check In And Deploy action and click Go.
Creating a Solution Status Access Right
Open the ACC and navigate to People and Organizations > ProfileRepository. List items of type Access Right and create a new access right for your solution status.
Set the access right’s
SolutionStatus
property to the repository id of the solution status you created in the previous set of instructions. Save the access right.
Creating a Task Definition
Open the ACC and navigate to Content > ServiceSharedRepository. List items of type
SolutionStatusTaskDefn
and create a new task definition.Set the task definition’s
taskElementId
property to 0 (zero).Set the task definition’s
workflowName
property to the workflow where you are using the task; for example,/Service/Agent/project/EditNewSolution.wdl
.Set the task definition’s
solutionStatus
property to the repository id of the solution status you created earlier. Click OK to save the task definition.Use the BCC to assign the new status access right to the appropriate organizations and roles.
The new solution task will now be available when you create or edit workflows in the ACC.
Locating a Solution Status Repository ID
To look up the repository ID of a solution status, follow these steps:
Open the ACC and navigate to Content > ServiceRepository. You can work inside or outside of a project context.
List items of type
SolutionStatus
. Click on the desired solution status. Look in theid
property for the solution status repository ID.