Skip to main content

Workflow 5 SDK - Define Input/Output types

Comments

2 comments

  • Ryan Cooney

    Checkboxes don't actually show up on activities. They only appear on form elements within the Display Form activity.

     

    If you are creating a custom activity with a Boolean input Workflow Designer will automatically suggest the true/false options.

     

    We don't have any specific support for enums, because these aren't really part of JavaScript. However, in most cases we are able to achieve something very similar using string union types. When Workflow Designer sees a string union type input it automatically provides suggestions for the known types. Here's how we do this for the Unit input of the Buffer activity

    unit?: "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | string;

    I hope this helps.

     

    --Ryan

    0
  • Permanently deleted user

    Thank you Ryan! This will make end user experience better. Looks like we still need to check if they selected the correct value because they can type anything in.

    0

Please sign in to leave a comment.