09-06-2012 08:31 AM
I am finally starting to get my feet wet with Unity scripting so this is a newbee question.
I created a simple script to write some keyword values to the Diagnostics Console and it's fine. I made a slight change to the code, did a build and save and publish with the "Set the new project version as active?" box checked, but when I test it, the older version is still being used. How do I get the new code to execute? Is it being cached on the app server? If so, how do I clear it?
09-06-2012 10:17 AM
As luck would have it, I was just able to confirm this.
09-06-2012 10:06 AM
What we usually do when there are multiple people using the appserver at a given time is just use the Workflow Timer Service and assign your script to an adhoc with no real timer attached to it. Then, in the timer service monitor, just run your timer manually and reset the service locally on each publish. It's not ideal, but it works well enough.
09-06-2012 10:19 AM
[quote user="mer"]It would be nice if I could somehow choose an app server and use that one to publish and initially test.
What I do, and would help you in this case, is set up a secondary "copy" of the APPNET and APPSERVER virtual applications called AppNet-Admin and AppServer-Admin (making the appropriate config file changes). Then point the Config APP to this location by using the -APPSRV_URL="http://{server}/appnet-admin" command line switch.
Alternately, or expansively, you could create a set of new Virtuals for each of your Admins, or each of your BU's. Resets of the app pools would be very limiting to what they effect.
Cheers,
Seth
09-07-2012 09:37 AM
The version of OnBase you are using makes a big difference. I too noticed that my Unity script changes (and Configuration Items) did not take effect unless I recycled the AppServer's pool. This was painful because it would disconnect my Unity Script editor and I'd have to relaunch Configuration and start over each time I tweaked something.
Thankfully, when I upgraded to 11.0 I discovered that Unity script changes take effect as soon as you publish them. I've not had to specifically reset IIS for any script changes I've made in 11.0+.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.