For Each Entry
This activity runs the activities inside for each Laserfiche entry in a collection of entries that was returned or generated by a previous activity in your workflow definition. You must define which entries this activity will be performed on. See the tokens this activity produces.
How does this activity look in the Designer Pane?
See an animation of this activity
To add this activity to a workflow definition
- Drag it from the Toolbox Pane and drop it in the Designer Pane.
To configure this activity
Drag and drop activities into this activity.
Select the activity in the Designer Pane to configure the following property boxes in the Properties Pane.
-
Activity Name
Once added to a workflow definition, the default name of an activity can be changed. Providing a custom name for an activity helps you remember the role it plays.
To name an activity
- Add an activity to your workflow by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
- Select the activity in the Designer Pane.
- Under Activity Name in the Properties Pane, replace the default name.
Note: Activity names cannot be the same as any other activity name in the workflow, they cannot be the same as the workflow's name, they must be less than 100 characters, they must contain at least one alphanumeric character, they cannot be "Name," and they cannot be the same as the activity's runtime type (which is usually only an issue with custom activities).
-
Activity Description
Use the Activity Description to provide descriptive text to help you remember the role that the activity plays in the workflow. All activities contain a default description that you can modify while constructing your workflow.
To modify an activity description
- Add an activity to your workflow by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
- Select the activity in the Designer Pane.
- Under Activity Description in the Properties Pane, replace the default description.
-
Entries
To select which entry or entries an activity will act on
- Add the activity to your workflow by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
- Select the activity in the Designer Pane.
- In the Properties Pane, in the appropriate property box, choose which entry the activity will act on.
- Starting Entry: The entry the workflow began with.
- Other Entry: To choose an entry that was returned or created in a previous step in the current workflow, click the Select link and choose an entry from the Select Entry dialog box.
Note: Some activities do not have the starting entry selected by default. If you are configuring one of these activities, click the Select link to choose an entry for the activity to act on.
-
Record Entries
The Record Entries property box determines whether the entries used in the For Each Entry activity will be listed in the Entries tab of a workflow instance.
Note: Using the Record Entries feature in the For Each Entry activity is recommended for troubleshooting purposes only. Reporting all entries, all the time, may increase the size of your SQL database.
To configure the Record Entries property box
- Add the For Each Entry activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
- Select the activity in the Designer Pane.
- In the Properties Pane, select if you want to List the entries in the workflow's instance details.
Tokens for For Each Entry
The For Each Entry activity makes the following token, which are available to activities placed inside it. The For Each Entry activity runs one time per entry. Each time it runs, the token values reflect the information relevant to the entry it is currently processing.
Name | Description | Sample Syntax* |
---|---|---|
CurrentEntry_Name | The name of the current entry. | %(ForEachEntry_CurrentEntry_Name) |
CurrentEntry_Id | The Laserfiche ID number of the current entry. | %(ForEachEntry_CurrentEntry_Id) |
CurrentEntry_Path | The folder path of the current entry. | %(ForEachEntry_CurrentEntry_Path) |
CurrentEntry_FullPath | The folder path of the current entry, including the entry's name. | %(ForEachEntry_CurrentEntry_FullPath) |
CurrentEntry_Repository | The repository the current entry is in. | %(ForEachEntry_CurrentEntry_Repository) |
CurrentEntry_Server | The Laserfiche Server that contains the current entry. | %(ForEachEntry_CurrentEntry_Server) |
CurrentEntry_Guid | The GUID (Globally Unique Identifier) of the current entry. | %(ForEachEntry_CurrentEntry_Guid) |
Iteration | The number of times the For Each Entry activity has run. | %(ForEachEntry_Iteration) |
*The "ForEachEntry" portion of the syntax changes to match the activity's name as specified in the Activity Name property box. Note that all non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity Apply [Settings] to Each, the syntax for the CurrentEntry_Id token will be %(ApplySettingstoEach_CurrentEntry_Id).