This project is read-only.

Workflow Activity for placing a containable item in a container?

Topics: General
Mar 16, 2015 at 2:52 PM
I have no idea where to begin, other than thinking that the Decision Activity would be the place to do what I have in mind.

Say I have an example TaskContainer Content Type that I set up to only accept TaskContainable items. Now say, I want to move a TaskContainable item to another container, like TaskCompleted Container Content Type (which only accepts Task Containable items) when a task is completed.

This would be kicked off by the completion of a Dynamic Form, wherin I would check if a particular field (Boolean TaskIsCompleted) is checked. I have two scenarios to check for: creation of the Task (generally not completed, place in TaskContainer) and update Task (if checkbox is checked for "Task Completed", place in TaskCompletedContainer).

First, is this even possible to do in an activity?

Second, any examples of how to code that?

I am thinking an if/else statement with the outcomes ("MoveToTask", "MoveToTaskCompleted") or some such.

Any help is greatly appreciated.
Mar 20, 2015 at 4:15 PM
Would anyone have any idea whether this is possible using the C# Scripting Module? And if so, could anyone provide an example?