You are viewing limited content. For full access, please sign in.

Question

Question

Rule Information for custom scripts

asked on July 17, 2020

Are there any help files or references for creating the rules for a custom script activity in the Laserfiche cloud. I have the following example however I get the two error messages that are shown in the screen shot. One when I only put in the name of the method and the other when I append () at the end. 

What should be the syntax for the method name? Does the dll that is created have to be the same as one of the workflow samples format or can I make my own class library?

0 0

Replies

replied on July 17, 2020 Show version history

Hi Cristobal,

You can find documentation on creating scripts here with links to script templates at the bottom of the page. 

 

To answer your questions directly

  1. The syntax for method name should just be PseudoMain with no parenthesis after
  2. The .dll does not have to be the same as the sample, you are free to create your own class libraries.

 

Your first error is likely related to the method signature which should be;

public static Task<IDictionary<string,object>> SampleMethodName(IDictionary<string,object> SampleInputName){…}

 

Details for the requirements of C# class libraries can be found here.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.