Jump to content
jason0x43

Going backwards (to previous state) in a workflow

Recommended Posts

In a multi-step workflow, one where Arg and Var objects separate Filters and are used to pass state from one step to the next, is there any way to go to the previous step without starting over from the beginning? For example, in the Simple Todo List project, when the user types "todo some new task" and presses Enter, the workflow moves to a Filter object, using the output of the initial script filter as input. Is there an easy way to return to the previous state, where Alfred is back on the previous Script Filter with a query of "todo some new task"? I know you can just re-open Alfred and press "up" to use history, but that doesn't work so well if you're 2 or 3 steps into a more complex workflow.

Share this post


Link to post

Hmmm...I had a feeling that was the case. A looping construct of some sort would be nice, some way to store a script filter's output (like in a var) and feed it back in, along with the query arg.

Share this post


Link to post

You can currently only loop by calling Alfred or an External Trigger via AppleScript.

 

If you need to pass more than one variable, you can pass a JSON string or cache the variables to disk.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...