WorkUnit Add Folder

 10 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
PFneo
Send Private Message
Posts: 5

Hey!  Some help would be very much appreciated!!  I'm using the WebRun node to add a folder onto a work unit.  However, I can't seem to get my syntax correct.

A KB article said these are the fields to pass with the string:

Field Names
attachBy
deleteFile
description
documentId
fileName
form
keyString
sequenceNumber
startDate
startTime
workUnit

I'm not sure where I put the file path from these values, I tried the keyString and documentId but neither seemed to work.  Mabye I had the syntax wrong, what is the proper syntax for writing the file path and name into this url?

Thanks!

ShawnV
Advanced Member Send Private Message
Posts: 37
Advanced Member

Sorry - I posted to the wrong question.

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
The program for adding a folder is: bpm/xml/folderForm.do
Here's an example of adding the PA52 folder:
method=Add&attachBy=System&keyString=CompanyEmployeeActionEffect_Date&documentId=FORM&form=PA52.1&fileName=PERSONNEL ACTIONS&startDate=FrDt&workUnit=oWorkUnit&sequenceNumber=1

Angle Brackets around variables removed.
David Williams
Deleted User
New Member Send Private Message
Posts: 0
New Member

That is assuming there are no other folders already attached to the workunit.  If you want to ensure you are adding to the bottom you need to first query the WFFOLDER table to find the last sequence number used, add 1 and use that value as sequenceNumber.

JudeBac
Veteran Member Send Private Message
Posts: 129
Veteran Member
In PF8, I use AGS to delete PA42 that is attached to the workunit. Now I am reading I need to use webrun. What is the string/command to delete the PA42.1 form attached to a workunit? There is only one attached.

Also, we are already in LSF9 environment and Lawson 8 app. But I cannot find in the server the folder or forms to use. Where in the server can I find these files?

/bpm/xml/workUnitBForm.do
/bpm/xml/folderForm.do    


Thank you,

Jude
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Here's a sample to add a Form - you should be able to figure out how to Delete it from this sample (I removed the variable tags)

Using a WebRun the Web Program =
bpm/xml/folderForm.do

The Command =
method=Add&attachBy=System&keyString=CompanyEmployeeActionEffect_Date&documentId=FORM&form=PA52.1&fileName=PERSONNEL ACTIONS&startDate=startDate&workUnit=oWorkUnit&sequenceNumber=1
David Williams
JudeBac
Veteran Member Send Private Message
Posts: 129
Veteran Member
I have been trying it and nothing seems to work. I then went to the server where the consultant installed PF and LSF and I cannot find “bpm/xml/folderForm.do” and “bpm/xml/workUnitBForm.do”. Are these files hidden?

Thanks

Derek Czarny
Veteran Member Send Private Message
Posts: 63
Veteran Member
I think the files you are looking for should be in this directory. They are .jsp files without the word Form.do on the end. I was actually looking for them myself yesterday and that is what I came up with.

F:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\shslawtestCell01\bpm-lawtest.ear\bpm.war\admin\screens\jsp\html
RussB
Send Private Message
Posts: 3

Can anyone give me the format for startDate.?

kflores01
Veteran Member Send Private Message
Posts: 43
Veteran Member

Good afternoon.

Does anyone know the proper syntax for adding folders in version 10?  We are in the midst of upgrading and have several flows which we need to replicate folderForm.do within a Webrun.  In the end, I am not limited to only using that command.  I only need the endresult to be the same.   Namely, adding an entry into the new IPA folder area with our special link.  In this case, a hyperlink for uploading documents to requisitions. 

Besides here, I can be reached at flores@cshl.edu.

Thank you in advance.

Bob Canham
Veteran Member Send Private Message
Posts: 217
Veteran Member
I haven't used folders before, but all of the items that were in the bpm section are now in landmark. You should be able to do this using a Landmark Transaction node in your flow (module pfi, object PfiWorkunitFolder).