Documentation
¶
Index ¶
- Constants
- type Alert
- type AlertFilter
- type FieldUpdate
- type OutboundMessage
- type Recipient
- type Rule
- type RuleFilter
- type Task
- type Workflow
- func (o *Workflow) DeleteAlert(alertName string) error
- func (o *Workflow) DeleteRule(ruleName string) error
- func (w *Workflow) GetAlerts(filters ...AlertFilter) []Alert
- func (w *Workflow) GetFieldUpdates() []FieldUpdate
- func (w *Workflow) GetRules(filters ...RuleFilter) []Rule
- func (c *Workflow) SetMetadata(m metadata.MetadataInfo)
- func (f Workflow) Tidy()
- func (c *Workflow) Type() metadata.MetadataType
- func (o *Workflow) UpdateAlert(alertName string, updates Alert) error
Constants ¶
View Source
const NAME = "Workflow"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
FullName string `xml:"fullName"`
CcEmails []struct {
Text string `xml:",chardata"`
} `xml:"ccEmails"`
Description *TextLiteral `xml:"description"`
Protected *BooleanText `xml:"protected"`
Recipients []Recipient `xml:"recipients"`
SenderAddress *TextLiteral `xml:"senderAddress"`
SenderType *TextLiteral `xml:"senderType"`
Template *TextLiteral `xml:"template"`
}
type AlertFilter ¶
type FieldUpdate ¶
type FieldUpdate struct {
FullName TextLiteral `xml:"fullName"`
Description *TextLiteral `xml:"description"`
Field TextLiteral `xml:"field"`
Formula *TextLiteral `xml:"formula"`
LiteralValue *TextLiteral `xml:"literalValue"`
LookupValue *TextLiteral `xml:"lookupValue"`
LookupValueType *TextLiteral `xml:"lookupValueType"`
Name TextLiteral `xml:"name"`
NotifyAssignee *BooleanText `xml:"notifyAssignee"`
Operation *TextLiteral `xml:"operation"`
Protected *BooleanText `xml:"protected"`
ReevaluateOnChange *BooleanText `xml:"reevaluateOnChange"`
TargetObject *TextLiteral `xml:"targetObject"`
}
type OutboundMessage ¶ added in v0.69.0
type OutboundMessage struct {
FullName TextLiteral `xml:"fullName"`
ApiVersion TextLiteral `xml:"apiVersion"`
Description *TextLiteral `xml:"description"`
EndpointUrl TextLiteral `xml:"endpointUrl"`
Fields []TextLiteral `xml:"fields"`
IncludeSessionId TextLiteral `xml:"includeSessionId"`
IntegrationUser TextLiteral `xml:"integrationUser"`
Name TextLiteral `xml:"name"`
Protected TextLiteral `xml:"protected"`
UseDeadLetterQueue *TextLiteral `xml:"useDeadLetterQueue"`
}
type Recipient ¶
type Recipient struct {
Field *TextLiteral `xml:"field"`
Recipient *TextLiteral `xml:"recipient"`
Type struct {
Text string `xml:",chardata"`
} `xml:"type"`
}
type Rule ¶
type Rule struct {
FullName string `xml:"fullName"`
Actions []struct {
Name struct {
Text string `xml:",chardata"`
} `xml:"name"`
Type struct {
Text string `xml:",chardata"`
} `xml:"type"`
} `xml:"actions"`
Active BooleanText `xml:"active"`
BooleanFilter *TextLiteral `xml:"booleanFilter"`
CriteriaItems []struct {
Field struct {
Text string `xml:",chardata"`
} `xml:"field"`
Operation struct {
Text string `xml:",chardata"`
} `xml:"operation"`
Value *TextLiteral `xml:"value"`
} `xml:"criteriaItems"`
Description *TextLiteral `xml:"description"`
FailedMigrationToolVersion *TextLiteral `xml:"failedMigrationToolVersion"`
Formula *TextLiteral `xml:"formula"`
TriggerType *TextLiteral `xml:"triggerType"`
WorkflowTimeTriggers []struct {
Actions []struct {
Name struct {
Text string `xml:",chardata"`
} `xml:"name"`
Type struct {
Text string `xml:",chardata"`
} `xml:"type"`
} `xml:"actions"`
OffsetFromField *TextLiteral `xml:"offsetFromField"`
TimeLength *TextLiteral `xml:"timeLength"`
WorkflowTimeTriggerUnit TextLiteral `xml:"workflowTimeTriggerUnit"`
} `xml:"workflowTimeTriggers"`
}
type RuleFilter ¶
type Task ¶
type Task struct {
FullName TextLiteral `xml:"fullName"`
AssignedTo *TextLiteral `xml:"assignedTo"`
AssignedToType TextLiteral `xml:"assignedToType"`
Description *TextLiteral `xml:"description"`
DueDateOffset TextLiteral `xml:"dueDateOffset"`
NotifyAssignee TextLiteral `xml:"notifyAssignee"`
OffsetFromField *TextLiteral `xml:"offsetFromField"`
Priority TextLiteral `xml:"priority"`
Protected TextLiteral `xml:"protected"`
Status TextLiteral `xml:"status"`
Subject TextLiteral `xml:"subject"`
}
type Workflow ¶
type Workflow struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"Workflow"`
Xmlns string `xml:"xmlns,attr"`
Alerts []Alert `xml:"alerts"`
FieldUpdates []FieldUpdate `xml:"fieldUpdates"`
OutboundMessages []OutboundMessage `xml:"outboundMessages"`
Rules []Rule `xml:"rules"`
Tasks []Task `xml:"tasks"`
}
func (*Workflow) DeleteAlert ¶
func (*Workflow) DeleteRule ¶
func (*Workflow) GetAlerts ¶
func (w *Workflow) GetAlerts(filters ...AlertFilter) []Alert
func (*Workflow) GetFieldUpdates ¶
func (w *Workflow) GetFieldUpdates() []FieldUpdate
func (*Workflow) GetRules ¶
func (w *Workflow) GetRules(filters ...RuleFilter) []Rule
func (*Workflow) SetMetadata ¶
func (c *Workflow) SetMetadata(m metadata.MetadataInfo)
func (*Workflow) Type ¶
func (c *Workflow) Type() metadata.MetadataType
Click to show internal directories.
Click to hide internal directories.