Skip to main content

Posts

Featured Post

Simple timer implementation in IBM BPM service

In IBM BPM we can use the Timer events in the BPDs to introduce the waiting period but we don't have any direct implementation of the timer in the service flows (or the server-side scripts). In this post, I'll explain a simple way to use the existing Java class in the script to simulate the time delays in the server-side logic. Below image shows the implementation of it. In the above example, I have used the java.lang.Thread.sleep() method to add the desired delay. The best part of this implementation is we don't need to import any additional package or classes the time is accurate to the milliseconds and not random and different when we try to use the counter and for/while loop Below is the script for reference var waitTime = function(milliseconds) { log.info("Wait time for " milliseconds" + milliseconds start"); java.lang.Thread.sleep(milliseconds); log.info("wait time over"); } waitTime(2000); That's all i...
Recent posts

How to get URL of web file in IBM BPM

In IBM BPM, sometimes we need the URL of the web files added to the process app. Below is the script that can be used to get the actual URL of the web file dynamically helping to avoid the static hardcoding. com_ibm_bpm_coach.getManagedAssetUrl("file.png",com_ibm_bpm_coach.assetType_WEB Hope this will be helpful. Thank you for stopping by. Please leave comment and share if this helps you. Cheers!!

Change default Task List View to Table instead of List in Portal

If you don't like the default List view of Task List in IBM BPM Portal and want it to be Table by default for each user from start. Follow this: Login to admin console and navigate to Resources > Resource Environment > Resource Environment Providers > Mashups_ConfigService > Custom properties  Add this com.ibm.bpm.portal.defaultTaskListView = table as new property Restart your server /Saroj

Change SPARK UI Table page size on Enter key

SPARK Table control is really a improved table compared to IBM BPM out of box Table control. But there are small annoying behaviors which might need a tweak to fix. One of such bug is no support of Enter key press on page SIzer control of Table to change the number of rows per table page. Out of box, you need to press Tab to reflect the change. To fix this you need to register the Enter key press event to do the stuff. Below is the script you need to add on Table On_Load event to make the Enter key press work.  me._instance._pageSizer.onkeypress = function (event){return (event.charCode >= 48 && event.charCode <= 57) || (event.keyCode == 8) || (event.keyCode == 9) || (event.keyCode == 13);};

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