Hi Pandian,
I spent some time to evaluate the custom widget that you have attached, found small issue in WEB-INF/web.xml file that restricts to deploy the widget ear file in Liberty. (Deploying the ear happens in Navigator POD)
In web.xml the tag web-app requires version attribute which is not there in your custom widget.
I am able to deploy the Custom widget successfully after updating the version attribute for web-app tag in WEB-INF/web.xml like below
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
I have updated the changes and attached zip file here.
Redeploy the custom widget
-- Update the modified zip under custom_plugins_Navigator_persistent_volume
-- Delete the IntelligentInvestigationWidgets.ok file from the following folder: "custom_plugins_Navigator_persistent_volume/properties".
-- Delete the case Init job in OpenShift and the system will rerun the case Init job and redeploy your custom widget package
------------------------------
Saisaran Yaratapalli
------------------------------
Original Message:
Sent: Thu August 06, 2020 01:13 PM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
Thanks for catching the error. I made the change and applied the CR. Still I get the missing JS file error. I'm attaching the MyCustomWidgets.zip and the CR file for your reference.
(img1) -> shows I applied the CR successfully
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Thu August 06, 2020 11:32 AM
From: Rahul Priyadarshi
Subject: Deploy app for custom widget in CP4Automation
I checked your CR file which you have attached here, there is a typo for baw section "bae_configuration" it should be "baw_configuration" . Indentation for <domain_name: "P8DOMAIN" > is mismatching with other parameters.
------------------------------
Rahul Priyadarshi
Original Message:
Sent: Thu August 06, 2020 10:03 AM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
I added the above config to my CRD "icp4adeploy" CRD (img1) and also moved the "IntelligentInvestigationWidgets.zip" to the plugin store (img2). Saved the CRD. Nothing happened. (I'm also attaching my CRD for your reference). I still see the missing JS error when I bring the case client.
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Wed August 05, 2020 02:11 AM
From: Rahul Priyadarshi
Subject: Deploy app for custom widget in CP4Automation
Hi Pandian,
In CRD file you can update the names of Custom Widgets to "custom_package_names" configuration parameter as of following sample CRD section
########################################################################
######## IBM Business Automation Workflow configuration ########
########################################################################
baw_configuration:
...
...
## The configuration for case
case:
init_job_image:
repository: <workflow-server-case-initialization>
tag: <image-tag-name>
pull_policy: <Always>
domain_name: <"P8DOMAIN"">
object_store_name_dos: <"DOS">
object_store_name_tos: <"TOS">
connection_point_name_tos: <"cpe_conn_tos">
network_shared_directory_pvc: <"icn-pluginstore-ctnrs">
custom_package_names: <"CustomeWidget1.zip,CustomWidget2.zip">
--------------------------
Rahul Priyadarshi
--------------------------
------------------------------
Rahul Priyadarshi
Original Message:
Sent: Tue August 04, 2020 04:49 PM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
I can locate the Plugin store in the NFS system but able to understand the CRD (common resource definition) file step in the above link. Do you have a sample CRD for a custom Widgets ?
My NFS plugin store:
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Tue August 04, 2020 12:59 AM
From: VISHNU K V
Subject: Deploy app for custom widget in CP4Automation
Hi Pandian,
For deploying custom widgets in BAW on Container topology, plz follow the instructions in the below infocenter link
https://www.ibm.com/support/knowledgecenter/SS8JB4_20.x/com.ibm.wbpm.imuc.container.doc/topics/tsk_config_custom_widgets.html
------------------------------
VISHNU K V
Original Message:
Sent: Mon August 03, 2020 02:52 PM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
Ok. Also My evaluation/demo BAW container copy does not have container APIs
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Mon August 03, 2020 02:17 PM
From: Werner Fuehrich
Subject: Deploy app for custom widget in CP4Automation
Pandian, I pointed you to the install of a snapshot with a Case Solution or a Process App as described in attached document. Looking at your screenshot I'm not sure whether this is the right thing. I'll involve another colleague.
------------------------------
Werner Fuehrich
BPM Tech Sales / SWAT
IBM Germany Research and Development
Boeblingen
497031163077
Original Message:
Sent: Mon August 03, 2020 01:36 PM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
Thanks for the response. I'm trying option B to install the custom widget file (a zip file containing ICMRegistry, EAR file and IIMPlugin.jar) from my laptop to the BAW server running on openshift cluster and I'm not sure how to provide the install_file * as formData. Do you have an example of the post ?
Also is this the same action when we do "Import Custom Widget" from baw admin.
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Mon August 03, 2020 11:07 AM
From: Werner Fuehrich
Subject: Deploy app for custom widget in CP4Automation
Pandian, with BAW onCtnrs you have two options to deploy an application. You know that you have a Workflow Center still running on WAS and a Workflow Server onCtnrs. a) online Deployment, provided the Workflow Server is registered to the Workflow Center. b) offline Deployment, i.e. you export the snapshot from the Workflow Center. Afterwards you use swagger to get authorized and to obtain a CSRF token to perform actions. Use the install action to deploy a new snapshot to your Workflow Server Containers: POST std/bpm/containers/install. The former wsadmin commands are exposed via these REST APIs against the liberty server. See https://www.ibm.com/support/knowledgecenter/SS8JB4_20.x/com.ibm.wbpm.ref.doc/baw-apidoc/bpm-swagger-ops-standard-published.json for more details.
------------------------------
Werner Fuehrich
BPM Tech Sales / SWAT
IBM Germany Research and Development
Boeblingen
497031163077
Original Message:
Sent: Fri July 31, 2020 09:19 AM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
Pramod,
I'm running CP4Automation on a OpenShift cluster and installed BAW as a demo/evaluation copy. I was able to deploy custom widgets and register it but the WAR files are not getting deployed to the Workflow.
BAW and Content navigator for CP4Automation comes with Websphere liberty with no AdminCenter. I know we can use Application Server console to deploy apps but in this case it is liberty profile with no admin center.
Also I found this in the knowledge Center
https://www.ibm.com/support/knowledgecenter/SS8JB4/com.ibm.casemgmt.design.doc/acmta010.html (EAR file for custom widget package isn't deployed)
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
Original Message:
Sent: Thu July 30, 2020 10:29 PM
From: PRAMOD PANT
Subject: Deploy app for custom widget in CP4Automation
Hello Pandian
If I understand your question correctly, You can deploy the application using Application Server console. Are you able to access it from your localhost or host name /port you configured for that container?
When you open the console, there is an option "Applications" on left hand side from where you can deploy the custom applications.
Thanks, Pramod
------------------------------
PRAMOD PANT
IBM
Original Message:
Sent: Wed July 29, 2020 05:12 PM
From: Pandian Mariadoss
Subject: Deploy app for custom widget in CP4Automation
I have a case template 5.2.1 case template which i deployed successfully and also deployed and registered custom widgets to the target environment.
When I access the case pages which uses custom widgets, it throwing an error on missing JS (javascript files).
The custom widgets calls JS found in a WAR file.
My question is how to deploy custom application (WAR, EAR) to the workflow server (which is a container using liberty profile)
------------------------------
Pandian Mariadoss
IT Consulting Specialist
IBM
Coppell TX
------------------------------