Hello,
Is there a way i can get all the workflow forms and correpondent data present in Content Server using Oscript?
Thank you!
This is actually very easy but I would like to ask how do you plan to do this.For e.g we have a eventscript that makes all the form data nd wf attribute data in a readable form(html mime type) which we put in a pre-defined place,but is driven by a event script.
We also have request handlers that show people workflow statuses and stuff like that ,that is done as calling the right W tables in livelink,and executed as oscript.
I have actually posted samples in communities that show how to parse attribute data(subtype=3) in a WF package.Again I do not take credit for that it is stuff that was taught in classes and my senior collegues sharing that so I know this data can be mined for you.
Please let the community know where you are getting stuck.If you get a workhandle (WAPIwork) then it has all the info for that workflow be it forms,attributes,attchments etc.
Hello Appu, thank you for the reply,
My problem is as follows,
I have one Workflow, and inside this workflow i have a subWorkflow. In both workflows i use a form (same template for both), and i map attributes from the form in the main workflow to other attributes in the form of the subworkflow, for example:
The form has 6 attributes, in the main workflow i fill the first 3 attributes, then i map these first 3 attributes to the other 3 attributes for the subworkflow form.
Then in the first step of the subworkflow, i have an event script, in witch i want to pic the mapped attributes. But when i try to do this the form as only the first three attributes filled and not the ones i mapped.
This is the line of code i have in the beggining of my general event script:
RecArray array = $WFMain.WAPIPkg.LoadWorkData( prgCtx, work )
In the builder, if i see what is inside the array, the form that is in there has only the first three attributes filled and it should have the other three also filled. It seems the form in there is the one from the main workflow and not the form in the subworkflow.
Can you tell me why the other three attributes are not filled?
I am not sure if this works but could you try to load the work package info for the subworkid instead of workid.For the second workflow, the subworkid is different to workid.But for the first workflow, both workid and subworkid is the same.Just a try :-).Regards,rakesh.-----Original message-----From: eLink Entry: Content Server Builder ForumSent: 24/10/2012, 5:40 PMTo: eLink RecipientSubject: Getting Workflow Forms data
As Rakesh said I would suspect the same thing either you have to use a subworkfloweventscript or you may have to get the right package
In the GUI when a workflow, subworkflow combination is happening you will see a indentation
My Main Workflow(1234567,1234567)
MySub Workflow(1234567,7891011)
Now in the workflow tables(wwork,wsubwork,wsubworktaks,wmap) et al the 1234567 is the common key to all in a executing workflow
In WFforms and attributes as well(forgot that table),so effectively when you get a workflow handle you are asking the database for
Work related info based on workid,subworkid combination.
If I get time I will try your scenario and let you know.
From: eLink Entry: Content Server Builder Forum [mailto:componentbuilder@elinkkc.opentext.com] Sent: Wednesday, October 24, 2012 7:19 AMTo: eLink RecipientSubject: [EXTERNAL]RE Getting Workflow Forms data
RE Getting Workflow Forms data
Posted by rjalla@opentext.com (Jalla, Rakesh Kumar) On 10-24-2012 08:18
I am not sure if this works but could you try to load the work package info for the subworkid instead of workid.
For the second workflow, the subworkid is different to workid.
But for the first workflow, both workid and subworkid is the same.
Just a try :-).
Regards,
rakesh.
-----Original message-----
From: eLink Entry: Content Server Builder Forum
Sent: 24/10/2012, 5:40 PM
To: eLink Recipient
Subject: Getting Workflow Forms data
Getting Workflow Forms data
Posted by ricardo.cartaxo@novabase.pt (Cartaxo, Ricardo) On 10-24-2012 06:00
In the builder, if i see what is inside the array, the form that is in there! has onl y the first three attributes filled and it should have the other three also filled. It seems the form in there is the one from the main workflow and not the form in the subworkflow.
[To post a comment, use the normal reply function]
Topic:
Forum:
Content Server Builder Forum
Content Server:
Knowledge Center
I ran some tests like this
https://knowledge.opentext.com/knowledge/cs.dll?func=ll&objId=29582185&objAction=download&viewType=1
and I am not seeing the behaviour you are seeing .In my 9.7.1 VM I am observing that livelink code is maintaining the mapping
I am hoping that the form values for the Main and sub are compatible .You are not trying to map a text field into a date field
which the gui doesnot allow anyways
Obviously the more complicated the template setup its types etc you could run into problems but I am not sure I can comment on those
Now that I have posted this I think what you are trying to do is You have values in the sub workflow but
you are trying to make sense of them from the parent something like.
what is the value of 1 represented in main form
I would think you want a workhandle on the main workflow for that in that you will use its id as Rakesh suggested
Field1=1,Field2=2,Field3=3
if you look ath the sub as in my example you are getting this
Field4=1,Field5=2,Field6=3
You are trying to make sense of if field4=1 in my sub where would 1 occur in the main.Looks complicated and
maybe error prone unless you better defined it without collissions etc
that could be your confusion is that it?
Thanks for the reply Appu,
I end up solving my problem with a workarround. The example i gave you it's a simplified version , because i have sub-sub-workflows, each one of them mapping fields to subworkflows. I don't know if that complexity could be behind the problem, as i wasn't verifing the behaviour you had in your example.
But anyways thanks again Appu.