I am running a workflow via both the CCstd and CCPro interfaces. Under CCPro it opens in a new window, runs and then closes the window via a javascript window.close(); command. When this CGI task is run via the CCstd interface, it takes over the main window and tries to close it when it completes. Is there a way in the code to determine which interface you are running under and behave differently? (i.e. window.close(); if under CCpro and redirect back to TS if under CCstd).
Your iwhome/httpd/iw-bin Folder should contain IWOV "sample_cgi_task.ipl". $DEBUG switch there controls logging of the background information.You may want to set this sample as your CGI command and run WF in both CCStd and CCPro. Log then will show you if there is an interface indication in either Posted Form or Environment variables. Certainly you may just as well log-out %ENV and CGI Form entries from your code.
# Get the value of the done pagemy($donePage) = $cgi->{form}{&DONE_PAGE_PARAM};# If the parameter has multiple values, just use its first value.$donePage = $$donePage[0] if (ref($donePage) eq "ARRAY");# Note: The done_page parameter will be provided# by the CCStd and CCPro UIs. If it's not# available, use a backwards-compatible# refresh page.if (!defined $donePage || ($donePage eq "")){ $donePage = "/iw-cc/teamsite/common/webdeskpro_refresh.html";}