Home > Contents > Index >
workflowengine:addnewobjecttogroup
Adds a new asset to a workflow group
Syntax
<workflowengine:addnewobjecttogroup site="pub_id" object="workflow_asset_object" id="workflow_group_id" [comment="comment"] [deadline="deadline"] [assignmentlist="participant_object"] />Parameters
site (required)
- Publication id.
object (required)
- Name of loaded workflow asset object.
id (required)
- Workflow group id.
comment (optional)
- Workflow participant's comments.
deadline (optional)
- Date object. Stored as time in milliseconds since midnight of 1/1/1970.
assignmentlist (optional)
- Name of participant object for a "Choose assignee when step is taken" assignment method. If none is entered, it uses the default set by the workflow administrator. (See Description.)
Description
The
workflowengine:addnewobjecttogroup
tag enables you to add a new asset to a workflow group, that is not in workflow yet. If the asset is already in a workflow, this tag will change the status to "pushed" (inactive until the current workflow ends) and add the asset to the workflow group identified byid
.Note the following when you use the
assignmentlist
parameter; when adding a new workflow step to a workflow process, the administrator needs to decide on the assignment method, which determines to whom the asset is assigned in the next workflow state. There are four assignment methods from which to choose:
- Retain "From State" assignees
- No assignments, control actions with function privs
- Assign from list of participants
- Choose assignee when step is taken
If the administrator selects the "Choose assignee when step is take" assignment method, then the workflow participant is presented with a list of possible assignees at the time of "Finish my assignment".
For more information about setting up a workflow process, see the Sites Administrator's Guide.
Error Numbers
The possible values of
errno
include:
Value Description -12024 Missing group. Workflow group not found. -12030 Insufficient privileges. -12041 Already in workflow. -12028 Not logged in. -12050 Incompatible process. -12026 Missing step. No start state. -12001 Missing field.Example
Adds a new asset to workflow group.
<%@ taglib prefix="workflowengine" uri="futuretense_cs/workflowengine.tld" %> <%@ taglib prefix="workflowasset" uri="futuretense_cs/workflowasset.tld" %> <workflowasset:load objvarname="wfasset1" assettype='<%=ics.GetVar("assettype")%>' id='<%=ics.GetVar("assetid")%>' /> <workflowengine:getgroupid objvarname="newgroup1" id='<%=ics.GetVar("wfgroupid")%>' /> <workflowengine:addnewobjecttogroup object="wfasset1" site='<%=ics.GetVar("siteid")%>' id='<%=ics.GetVar("wfgroupid")%>' /> <workflowengine:setgroup object="newgroup1" />
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.