Search found 182 matches

by alexwgordon
Thu Dec 01, 2016 12:35 am
Forum: Configuration
Topic: SOLVED Parse Workflow Form Element Values
Replies: 2
Views: 669

SOLVED Parse Workflow Form Element Values

Hi all, I'm working on a workflow and this may be trivial, but I'm confused on how to parse two of these types of information. 1. I retrieve the security of a file by performing String mySecurityUsers = OKMAuth.getInstance().getGrantedUsers(systemToken, thisPath).toString(); However, when I get this...
by alexwgordon
Thu Dec 01, 2016 12:05 am
Forum: Configuration
Topic: SOLVED Delete Note from Document via Workflow
Replies: 9
Views: 2872

Re: Delete Note from Document via Workflow

My apologies jlllort! I tried it but I did it in the middle of a for loop and it didn't seem to like it. I used it on the outside of the for loop and logout after the for loop and it seems to be much happier. Thank you for your patience and help!!
by alexwgordon
Tue Nov 29, 2016 6:17 am
Forum: Usage
Topic: SOLVED Move Workflow file to new location – edit/update/delete
Replies: 20
Views: 5200

Re: Move Workflow file to new location – edit and update

Hi jllort! I've looked through the API docs before and I have a hard time navigating it to figure out where the exact methods are that I'll end up needing. I usually end up stumbling upon after a long long time. 1. But anyway, how can how can I set path directly from workflow in a transition if the ...
by alexwgordon
Mon Nov 28, 2016 3:26 pm
Forum: Configuration
Topic: SOLVED Delete Note from Document via Workflow
Replies: 9
Views: 2872

Re: Delete Note from Document via Workflow

I've tried running the code with both the original author and okmAdmin and neither throws an error, but neither user is able to delete the notes anymore, despite it going into the correct loops (verified by just printing out a line into the console). The line OKMNote.getInstance().delete(null, noteP...
by alexwgordon
Tue Nov 22, 2016 1:01 am
Forum: Configuration
Topic: SOLVED Delete Note from Document via Workflow
Replies: 9
Views: 2872

Re: Delete Note from Document via Workflow

Ah okay, so it seems like those commands are not causing errors, but now it seems like my notes do not want to delete even if the original user is attempting to delete them. I'm not getting errors, but the note is still there after the method runs. Do you see anything wrong in my code? Thanks! Strin...
by alexwgordon
Mon Nov 21, 2016 11:05 pm
Forum: Usage
Topic: SOLVED Move Workflow file to new location – edit/update/delete
Replies: 20
Views: 5200

SOLVED Move Workflow file to new location – edit/update/delete

Hi all! So I'm working on a workflow and we've run into an issue. What we usually do is upload files that need to be reviewed to folder okmroot\"To Be Reviewed". The files go through a workflow and once fileB is approved, fileB needs to be moved into its correct directory and that could be anywhere ...
by alexwgordon
Thu Nov 10, 2016 3:20 pm
Forum: Configuration
Topic: SOLVED OpenKM Portable Run Error
Replies: 6
Views: 1422

Re: SOLVED OpenKM Portable Run Error

@jllort, also super excited to see that new environment! Any release date on that?
by alexwgordon
Thu Nov 10, 2016 3:18 pm
Forum: Configuration
Topic: SOLVED OpenKM Portable Run Error
Replies: 6
Views: 1422

Re: SOLVED OpenKM Portable Run Error

Are you using the portable edition of OKM?
by alexwgordon
Thu Nov 10, 2016 3:16 pm
Forum: Configuration
Topic: SOLVED Delete Note from Document via Workflow
Replies: 9
Views: 2872

Re: Delete Note from Document via Workflow

Okay, sure, I'll create a bug report there.

In the mean time, is there a way to delete the note as the original user somehow? Thanks!
by alexwgordon
Tue Nov 08, 2016 5:06 pm
Forum: Configuration
Topic: SOLVED Delete Note from Document via Workflow
Replies: 9
Views: 2872

SOLVED Delete Note from Document via Workflow

Hi all, I'm trying to delete a specific note that I created during a workflow. However, the person who started the workflow is not the same as the person who ends the workflow and therefore I get a permissions error when trying to delete the note. I attempted to use SystemToken from DbSessionManager...
by alexwgordon
Tue Nov 08, 2016 3:23 pm
Forum: Configuration
Topic: Workflow Mail Notification
Replies: 21
Views: 5593

Re: Workflow Mail Notification

Portable 6.3.1 nightly build 8184 mostly I believe.
by alexwgordon
Mon Nov 07, 2016 6:47 pm
Forum: Configuration
Topic: How to Assign Workflow Comment to User
Replies: 0
Views: 3781

How to Assign Workflow Comment to User

Hi all,

I'm trying to automatically add a comment to a workflow while it's running and whenever I add the comment it is posted by "null". I'm using the code

Code: Select all

executionContext.getToken().addComment("Rev " + myrev + " approved.");
Anybody know how to assign a different user to the comment?

Thanks!
by alexwgordon
Mon Nov 07, 2016 5:01 pm
Forum: Configuration
Topic: Workflow Mail Notification
Replies: 21
Views: 5593

Re: Workflow Mail Notification

Okay, so String userMail = OKMAuth.getInstance().getMail(userId); works perfectly. However, my sendMessage command com.openkm.util.MailUtils.sendMessage(fromAddress, toAddress, subject, content); gives an error in Eclipse that says: "The method sendMessage(...) from the type MailUtils refers to the ...
by alexwgordon
Fri Nov 04, 2016 3:08 pm
Forum: Configuration
Topic: Workflow Mail Notification
Replies: 21
Views: 5593

Re: Workflow Mail Notification

Alright, I'm trying to figure out how to implement using the MailUtils, but I'm stuck in the actual send message. Can you take a look and advise? Also, what is the method to get the email of the taskowner? my "aktor" variable should be the current task owner, so I just don't know the method to call ...