Problem Description:
After migrating OIM to PS3 from any previous version it was
observed that, for all newly created SOA composite workflow assignment not
getting visible in “Pending Approval” tile. But it is visible in “Inbox”. This
problem occurred only with the newly created composites, not with any existing
one, even if they are redeployed.
Reason:
In OIM PS3, there are
some VIEWs created for displaying different types of pending approval tasks
like below. These VIEWs are located in SOAINFRA schema.
In general, during SOA
workflow composites deployment, the NameSpace url get registered with this view
in order to display the pending approval task in the “Pending Approval” tile.
NameSpace URL
After upgrading OIM
to PS3 from any previous version, this NameSpace url of newly created
composites not getting registered with PENDING_APPROVALS_VIEW after deployment.
This problem will not occur if you install a
fresh OIM PS3.
Resolution:
Register the
NameSpace url of the composite manually with the PENDING_APPROVALS_VIEW. In
order to perform this action, follow the below procedure:
-
Login to SOAINFRA schema (Use SQLDeveloper)
-
Open the table WFUSERTASKVIEW
-
Double
Click on the BLOB and click on the pencil icon
-
Download
the BLOB message in your desktop (save it as XML)
-
Get
the NameSpace url of the SOA composite from the ApprovalTask.task file and copy
the same
-
Open the BLOB message
XML file and add the copied NameSapce url under the <valueList> tag as
below:
-
Save
the XML file.
-
Open
the same SQLDeveloper and select the PENDING_APPROVALS_VIEW row of table
WFUSERTASKVIEW
-
Double
click on the BLOB and click on the pencil icon.
-
Click on the “Load” and select the modified XML
file.
-
Click
on open the load the modified XML file.
-
Commit
the changes in the database table.
-
No
restart required.
Now you can see the
Notification of the pending task in “Pending Approval” tile.
Login to SOAINFRA schema (Use SQLDeveloper)
Open the table WFUSERTASKVIEW
Double
Click on the BLOB and click on the pencil icon
Download
the BLOB message in your desktop (save it as XML)
Get
the NameSpace url of the SOA composite from the ApprovalTask.task file and copy
the same
Open the BLOB message
XML file and add the copied NameSapce url under the <valueList> tag as
below:
Save
the XML file.
Open
the same SQLDeveloper and select the PENDING_APPROVALS_VIEW row of table
WFUSERTASKVIEW
Double
click on the BLOB and click on the pencil icon.
Click on the “Load” and select the modified XML
file.
Click
on open the load the modified XML file.
Commit
the changes in the database table.
No
restart required.
Hi Avijit,
ReplyDeleteYour post helped me when I was using OIM 11.1.2.3.0 and it worked like a charm.
Now I am in OIM 12.2.1.3.0. The problem is still the same and your solutions works too. But now, although I can see tasks in "Pending Approvals", I cannot retrieve them from REST API /iam/governance/selfservice/api/v1/requests?view=pendingApprovals
Any suggestions?
Regards,
Naveen