Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

BPM getTaskDisplayURL workflow version issue

Jack IssacNov 22 2016 — edited Dec 13 2016

Hi,

I'm using JDev 11.1.1.9

I prepared custom worklist for webcenter portal and I'm getting tasks of user with bpm api.

For a bpm application, I deployed 2 different version to soa server. They have different URI for their UI project, like following URI:

/workflow/v0.2b/PersonelBPM_ADF/faces/adf.task-flow?_id=PersonelHT_TaskFlow&_document=WEB-INF/PersonelHT_TaskFlow.xml

/workflow/v0.1b/PersonelBPM_ADF/faces/adf.task-flow?_id=PersonelHT_TaskFlow&_document=WEB-INF/PersonelHT_TaskFlow.xml

Also I'm showing task to user in a inline popup using modal-dialog-task-flow. For show task to user, I'm getting display url following code,

                    Map parameters = new HashMap();

                    parameters.put(Constants.BPM_WORKLIST_TASK_ID,

                                   task.getSystemAttributes().getTaskId());

                    parameters.put(Constants.BPM_WORKLIST_CONTEXT,

                                   getWfCtx().getToken());

                   parameters.put(Constants. BPM_PARENT_URL,

                                   ProjectUtils.getSOAUrl() + "/worklist");

                    //--

                    //---------------------------------

                    String taskURL =

                        WorklistUtil.getTaskDisplayURL(getWfSvcClient(),

                                                       getWfCtx(), task, null,

                                                       "worklist", parameters);

This code is giving to me task url; but it's not giving right task url for different version of applications.

Example, I started the process separately. 1 process in 0.1 version, 1 process in 0.2 version.

When I get tasks url, they are same workflow URI for all process in this application; but I'm expecting like following urls:

For 0.1b version:

http://<hostname>:<port>/workflow/v0.1b/PersonelBPM_ADF/faces/adf.task-flow?_id=PersonelHT_TaskFlow&_document=WEB-INF/PersonelHT_TaskFlow.xml/...............................

For 0.2b version:

http://<hostname>:<port>/workflow/v0.2b/PersonelBPM_ADF/faces/adf.task-flow?_id=PersonelHT_TaskFlow&_document=WEB-INF/PersonelHT_TaskFlow.xml/...............................

Also I checked URI of soa composite in Enterprise Manager, they have different URI.

Thanks,

Jack.

This post has been answered by BSRT on Dec 13 2016
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 10 2017
Added on Nov 22 2016
3 comments
811 views