< Back

Add-AMWorkflowLink

Sat Jan 11, 2020 2:28 am

NAME Add-AMWorkflowLink



SYNOPSIS

Adds a link between two objects in an AutoMate Enterprise workflow





SYNTAX

Add-AMWorkflowLink -InputObject <Object> -SourceConstruct <Object> -DestinationConstruct <Object> [-LinkType

{Blank | Success | Failure | Result}] [-ResultType {Default | True | False | Value}] [-Value <Object>] [-WhatIf]

[-Confirm] [<CommonParameters>]



Add-AMWorkflowLink -InputObject <Object> -SourceItemID <Object> -DestinationItemID <Object> [-LinkType {Blank |

Success | Failure | Result}] [-ResultType {Default | True | False | Value}] [-Value <Object>] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Add-AMWorkflowLink can add a link between two objects in an AutoMate Enterprise workflow





PARAMETERS

-InputObject <Object>

The workflow to add the link to.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-SourceConstruct <Object>

The source repository object for the link. Object can only exist once in the workflow.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationConstruct <Object>

The destination repository object for the link. Object can only exist once in the workflow.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SourceItemID <Object>

The source workflow item or trigger ID for the link.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationItemID <Object>

The destination workflow item or trigger ID for the link.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LinkType

The type of link to add.



Required? false

Position? named

Default value Success

Accept pipeline input? false

Accept wildcard characters? false



-ResultType

If a Result link type is used, the type of result (true/false/default/value).



Required? false

Position? named

Default value Default

Accept pipeline input? false

Accept wildcard characters? false



-Value <Object>

If a Value result type is used, the value to set.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

The following AutoMate object types can be modified by this function:

Workflow





OUTPUTS

None





-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Add a link between "Copy Files" and "Move Files"



Get-AMWorkflow "FTP Files" | Add-AMWorkflowLink -SourceConstruct (Get-AMTask "Copy Files") -DestinationConstruct

(Get-AMTask "Move Files")











RELATED LINKS

https://github.com/AutomatePS/AutomatePS