File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,3 +271,11 @@ func (i *iteratorRole) SetRuntimeVars(kv map[string]string) {
271271 }
272272 i .template .SetRuntimeVars (kv )
273273}
274+
275+ func (i * iteratorRole ) GetTaskPID () string {
276+ if i == nil {
277+ return ""
278+ }
279+ pid , _ := i .template .GetUserVars ().Get ("taskPID" )
280+ return pid
281+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ type Role interface {
5757 GlobFilter (g glob.Glob ) []Role
5858 SetRuntimeVar (key string , value string )
5959 SetRuntimeVars (kv map [string ]string )
60+ GetTaskPID () string
6061}
6162
6263type Updatable interface {
Original file line number Diff line number Diff line change @@ -350,4 +350,12 @@ func (r *roleBase) CollectInboundChannels() (channels []channel.Inbound) {
350350 channels = channel .MergeInbound (r .Bind , r .parent .CollectInboundChannels ())
351351 }
352352 return
353+ }
354+
355+ func (r * roleBase ) GetTaskPID () string {
356+ if r == nil {
357+ return ""
358+ }
359+ pid , _ := r .UserVars .Get ("taskPID" )
360+ return pid
353361}
You can’t perform that action at this time.
0 commit comments