# Run Action List / Include Project

**URL:** https://www.finalbuilder.com/forums/t/run-action-list-include-project/4162
**Category:** Feature Requests
**Created:** [August 15, 2011, 4:52am UTC](https://www.finalbuilder.com/forums/t/run-action-list-include-project/4162 "2011-08-15T04:52:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![finalbuilder](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@finalbuilder](https://www.finalbuilder.com/forums/u/finalbuilder)
#### Post date: [August 15, 2011, 4:52am UTC](https://www.finalbuilder.com/forums/t/run-action-list-include-project/4162/1 "2011-08-15T04:52:07Z")

</div>

Sometime I run into a situation where I need to execute several steps to achieve what I&nbsp;need.

For example:&nbsp;I want to discover the user name from a Perforce WorkSpace. To achieve this I&nbsp;currently execute the following steps /&nbsp;actions:

- Perforce Generic with Perforce Command "info" and additionally "Log To Variable" set

- Text Replace with Regular Expression Search String "(?ims)(.\*^)(User name:.\*$) and Regular Expression Replacement&nbsp;$2

- Text Replace with Regular Expression Search String (?ims)User Name: (.\*$)(?-s)(.\*)$ and Regular Expression Replacement&nbsp;$1

- Text Replace with Regular Expression Search String (?ms)$.\* and Regular Expression Replacement&nbsp;$1

This might also be useful for other projects. Therefore I'd like to save these steps as a single project and then call it in need by means of the Include Project action. Therefore I need to provide the Perforce WorkSpace Name when calling&nbsp;the project. Unfortunately there is no way to return the calculated user name back to the caller.

This might be possible by one of the following ways:

- either I&nbsp;can specify a variable as 'by reference'&nbsp;and&nbsp;with this a value set to this variable by the called project&nbsp;(action&nbsp;list)&nbsp;is available for&nbsp;the calling project

-&nbsp;or a new 'result'&nbsp;variable is introduced providing means to return any value

Some implementation thoughts:

- in the variable editor might be a new checkbox 'share with calling action /&nbsp;project'

- variables marked this way are added to the list of variable in the 'Include Project'&nbsp;as well as 'Run Action List'&nbsp;action editors (Details /&nbsp;Options tab card)

- a variable of the calling project assigned to such a 'called' variable&nbsp;is shared with it (their values are always the same)

This approach should not affect existing project (thus is compatible with earlier versions)&nbsp;while providing the new functionality.

IMHO&nbsp;this might improve the worth of both&nbsp;actions (Run Action List /&nbsp;Include Project)

Best regards

Michael

---

<div class="post-metadata">

### Author: ![michael.jelich](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c57346/32.png) [@michael.jelich](https://www.finalbuilder.com/forums/u/michael.jelich)
#### Post date: [May 11, 2012, 4:26am UTC](https://www.finalbuilder.com/forums/t/run-action-list-include-project/4162/2 "2012-05-11T04:26:30Z")

</div>

> Posted By Michael Jelich on 15 Aug 2011 09:52 AM  
> 
> Sometime I run into a situation where I need to execute several steps to achieve what I&nbsp;need.
> 
> For example:&nbsp;I want to discover the user name from a Perforce WorkSpace. To achieve this I&nbsp;currently execute the following steps /&nbsp;actions:
> 
> - Perforce Generic with Perforce Command "info" and additionally "Log To Variable" set
> 
> - Text Replace with Regular Expression Search String "(?ims)(.\*^)(User name:.\*$) and Regular Expression Replacement&nbsp;$2
> 
> - Text Replace with Regular Expression Search String (?ims)User Name: (.\*$)(?-s)(.\*)$ and Regular Expression Replacement&nbsp;$1
> 
> - Text Replace with Regular Expression Search String (?ms)$.\* and Regular Expression Replacement&nbsp;$1
> 
> This might also be useful for other projects. Therefore I'd like to save these steps as a single project and then call it in need by means of the Include Project action. Therefore I need to provide the Perforce WorkSpace Name when calling&nbsp;the project. Unfortunately there is no way to return the calculated user name back to the caller.
> 
> This might be possible by one of the following ways:
> 
> - either I&nbsp;can specify a variable as 'by reference'&nbsp;and&nbsp;with this a value set to this variable by the called project&nbsp;(action&nbsp;list)&nbsp;is available for&nbsp;the calling project
> 
> -&nbsp;or a new 'result'&nbsp;variable is introduced providing means to return any value
> 
> Some implementation thoughts:
> 
> - in the variable editor might be a new checkbox 'share with calling action /&nbsp;project'
> 
> - variables marked this way are added to the list of variable in the 'Include Project'&nbsp;as well as 'Run Action List'&nbsp;action editors (Details /&nbsp;Options tab card)
> 
> - a variable of the calling project assigned to such a 'called' variable&nbsp;is shared with it (their values are always the same)
> 
> This approach should not affect existing project (thus is compatible with earlier versions)&nbsp;while providing the new functionality.
> 
> IMHO&nbsp;this might improve the worth of both&nbsp;actions (Run Action List /&nbsp;Include Project)
> 
> Best regards
> 
> Michael

  
Yes, I'd like that, too... ;-)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 26, 2013, 11:50am UTC](https://www.finalbuilder.com/forums/t/run-action-list-include-project/4162/3 "2013-02-26T11:50:32Z")

</div>

returning variable values from running action lists and running included projects would be very, very appreciated   
  
 /Theo
