-
How to call a module upgrade script
Hi, For a module I'm working on, I need to call some Oscript to move some opentext.ini settings into KINI. I was under the impression that DoSubclassUpgrade() was the feature of my Module object I need to orphan, but I don't ever see it get called. Further, unlike other modules, I don't see the Configure script ever being…
-
How to set WF data BEFORE initiate?
I need to start an instance of a workflow map. But as a first step I need to set attributes values in the workflow. How to set attribute values BEFORE the initiation of the workflow map?
-
LoadWorkData returns only "Start Step"
I have a simple workflow with an event script at the middle step. In the script I need to get task data for the current step (where the script is assigned). To do so I use the following method: RecArray workData = $WFMAIN.WAPIPkg.LoadWorkData(prgCtx, work) But in the workData I can see only the 1st step "Start Step". Why…
-
Dynamic function call
I have an Assoc with associated function names to an object type: functionList = Assoc{ 'type1': Assoc{ 'method1': 'method1ForType1' 'method2': 'method2ForType1' } } How can I call some function with a name generated from a variable based on the functionList? I need something like: funcName =…
-
Multiline string value
Is there any comfortable way to define multiline string value in OScript? I need something like this: sqlQuery = """SELECT objf.sys_name, objf.ui_name, objf.show_order, ftype.system_name as type FROM object_field objf, field_type ftype WHERE objf.object_type_id = 1 AND objf.field_type_id = ftype.id """
-
Create an OScript object based on Class
Like in other languages I need to have an Object in my OScript module. This object will have properties and methods. So I would like to define it as a Class and then create an instance. Is it possible to do in OScript? Could somebody share an example?
-
Which certificate store used when Oscript calls Java libraries
Hi, I have some Oscript that calls an API via the Apache HTTP Client library. I'm getting a (well known) certificate error, mainly this Java exception: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to…
-
Custom module recompilation
Hi Experts, We have a custom module which is developed for Livelink 9.7.1 to apply permissions once folders are created using workflow. While recompiling this module to make it compatible with CS20.4. we are getting "unknown feature specified error" for below line in code. RecArray.AddRecord( array, { obj,…
-
Change workflow attribute value from outside workflow instance
Hello, I'm still green to to OScript, so I'm not sure if what I'm asking is possible. What I'm doing: I have a dashboard-style Webreport that lists all instances of a workflow that are on a particular step. These workflow instances are grouped into to two tables based on the value of one of the workflow's attributes (set…
-
Getting a list of group names for a user in OScript (querying OTDS)
I have a custom OScript REST API and I need to check the group membership of the user as I want to limit access to the API to a specific group. The group is available in the connected OTDS instance. Is there sample code to do this?