Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Widget Connector
width560
urlhttps://player.vimeo.com/video/584873519
height315

How do I do an AND test?

In the Check Morning Start example, we wanted to check that morning client jobs are started in the morning, not in the afternoon. When we analyse this test this means “is a client job AND should start in morning”, or “clientId is not empty AND the startTime is between 6am and 11:59am”.

We have done this by nesting our tests. In the workflow picture below, we first check that it is a client job. If it is, then we check the start time. You could put them in either order - client job check first or morning start check first.

Info

Tip for Advanced Users: For performance, the rule of thumb is to first do a simple test which will reduce greatly the number of matches. For example, say we know 50% of our jobs are client jobs, and 90% of them start in the morning. We test the client job first because it is the simpler test for the computer to do (ie is this field empty) and then the check that while take longer (doing two time comparisons) will only be done for half of the jobs.

...

...

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "workflowstudio"

...