Skip to main content

Posts

The exposed dashboard service from toolkit is still showing in Process Portal

This is the issue I noticed in IBM BPM 8.5.7 before december fix pack. This might be fixed in next fix packs, but if you are facing this issue you can try the steps in last paragraph. If you want you can read my sad efforts :D I had faced this issue while designing dashboard client side human service (CSHS). For testing the dashboard service with custom components, I copied it into toolkit and then forgot to remove it before creating toolkit snapshot. As a result, the process apps started showing this coach from toolkit under Exposed items after upgrading to latest toolkit version. It took some time to figure out why multiple dashboard is showing up in Process Portal and later realized the duplicate copies are from toolkit. So fixed the exposure of the dashboard CSHS (I didn't delete, as I needed it for testing) and upgaded the toolkit version. As expected it removed the coach from Exposed items list in Designer, but interestingly it was still available in the Process Portal a...

Basic guidelines to use Alerts from SPARK UI Toolkit

SPARK UI Toolkit is a boon for IBM BPM developers as it's improving day by day and IBM will be accepting it as official toolkit and merge the controls in their System Data toolkit. In this post I'll share some simple tips to use the SPARK Alert controls apart from those which are not mentioned in Salient Process JS Docs . These are few additional guidelines to use the SPARK Alert component in more effective way. You can reuse the alert instance to change the style, text, and title of it To do this, first use the getAlert(id) to get the alert object*. Now you can use setText(text), setTitle(title), setStyle(style) to change the desired thing in the existing alert. You can close the selected alert from the list of alerts. To do this, use the getAlert(id) to get the alert object*. Now you can use close() function to close that alert. * You need to assign the id in appendAlert() while creating new alert message. Cheers, Saroj

Popup error in Web Process Designer regarding SPARK theme

The may not be the best help but worth to verify if the right theme is selected J https://support.salientprocess.com/forums/topic/spark-ui-toolkit-theme-settings-with-ibm-bpm-8-5-7/   Other work around to remove the popup are : close the Client Side Human Service (CSHS) and open it again to see if the new theme is reflecting in designer reload the Web Process Designer, as often when we change theme in Process App Settings, Web PD is unable to reflect the new theme styles in the active instance and it need to be reloaded to reload the updated theme styles in Process Designer. Regards, Saroj

How to use dojo.query to filter out few unwanted elements

Ever had scenario where you use a dojo.query to get the list of elements with some specific class but then realized you need to ignore few more elements from the result but cannot as those elements also have the same class defined. No problem you can modify your query string to add the not function and pass in the new unique class which only these controls have. Not able to find any unique class, no issues, you can manually assign one custom class and use it in the query. I encountered this requirement while working in IBM BPM Coaches but this is not specific to BPM instead it's a pattern for dojo query. So here is an example of filtering the controls using the class names in the dojo.query dojo.query(".CPP") gives me the list of all the interactive controls in the page. But I don't want the button controls and my button control has another class as "Button" to my modified query will be dojo.query(".CPP:not(.Button)") This query will list all the e...

How to pass parameter to function while calling it in spark controls

This is extension to the article of Creating Custom Functions in Spark UI Toolkit. It don't have option to explain how to define the function with real input parameter and invoke it with data. To understand how to Create Custom Function in Spark, please refer this  link. Here I'll explain how to define the function with real input parameter (not the control input) and how to invoke it with the data. It's the normal way of writing any parameterized function in custom HTML (Advanced control) in IBM BPM, like openLink(control, val) {//code here;}. Screenshot below. In this you can see I'm using val variable to get the input and deciding the link to open based on it's value. The suggested way to call the function in spark on any control event is like @openLink() as shown below.   But this will not pass any value. Interestingly as per the explanation in the Spack help, it pass the control reference in the function. and you can't try the combinations of passing the e...

Using Link Button control of SPARK UI Toolkit in BPM 8.5.7

One of the missing control from IBM BPM 8.5.7 Responsive Coaches components is the Link control. To achive this we need to create our custom control and use it or if you have Spark UI Toolkit, then you can use the Link control. The control has two use types: URL and Boundary Event. Link as URL: You can set the Link Type behavior to URL and provide the inline URL or bind the variable having valid URL. By default the URL link will open in new window. If you want to replace the existing window, you can check the option Open in Same Window. Link as Boundary Event: You can also use the Link control to inact as button and can define the navigation flow in the service. For this you need to set the Link Type as Boundary Event. No need to provide any URL as it'll anyway ignore it. Now you can draw the sequence line for the Link control and have your flow and code in place.  But interesting part to do here is check the Open in Same Window . If you don't enable this check box, in IE11 the...