Versions in this module Expand all Collapse all v1 v1.1.2 Dec 8, 2019 Changes in this version + const DefaultDateTimeFormat + const DefaultEndpointUrl + const DefaultTimeoutSec + const DefaultUserAgent + const DelegationStatePending + const DelegationStateResolved + const PackageVersion + const VariableFilterExpressionOperatorEqual + const VariableFilterExpressionOperatorGreaterThan + const VariableFilterExpressionOperatorGreaterThanOrEqual + const VariableFilterExpressionOperatorLessThan + const VariableFilterExpressionOperatorLessThanOrEqual + const VariableFilterExpressionOperatorLike + const VariableFilterExpressionOperatorNotEqual + var ErrorNotFound = &Error + type Client struct + Deployment *Deployment + ExternalTask *ExternalTask + ProcessDefinition *ProcessDefinition + UserTask *userTaskApi + func NewClient(options ClientOptions) *Client + func (c *Client) SetCustomTransport(customHTTPTransport http.RoundTripper) + type ClientOptions struct + ApiPassword string + ApiUser string + EndpointUrl string + Timeout time.Duration + UserAgent string + type Deployment struct + func (d *Deployment) Create(deploymentCreate ReqDeploymentCreate) (deployment *ResDeploymentCreate, err error) + func (d *Deployment) Delete(id string, query map[string]string) error + func (d *Deployment) Get(id string) (deployment ResDeployment, err error) + func (d *Deployment) GetList(query map[string]string) (deployments []*ResDeployment, err error) + func (d *Deployment) GetListCount(query map[string]string) (count int, err error) + func (d *Deployment) GetResource(id, resourceId string) (resource *ResDeploymentResource, err error) + func (d *Deployment) GetResourceBinary(id, resourceId string) (data []byte, err error) + func (d *Deployment) GetResources(id string) (resources []*ResDeploymentResource, err error) + func (d *Deployment) Redeploy(id string, req ReqRedeploy) (deployment *ResDeploymentCreate, err error) + type Error struct + Message string + Type string + func (e *Error) Error() string + type ExternalTask struct + func (e *ExternalTask) Complete(id string, query QueryComplete) error + func (e *ExternalTask) ExtendLock(id string, query QueryExtendLock) error + func (e *ExternalTask) FetchAndLock(query QueryFetchAndLock) ([]*ResLockedExternalTask, error) + func (e *ExternalTask) Get(id string) (*ResExternalTask, error) + func (e *ExternalTask) GetList(query map[string]string) ([]*ResExternalTask, error) + func (e *ExternalTask) GetListCount(query map[string]string) (int, error) + func (e *ExternalTask) GetListPost(query QueryGetListPost, firstResult, maxResults int) ([]*ResExternalTask, error) + func (e *ExternalTask) GetListPostCount(query QueryGetListPost) (int, error) + func (e *ExternalTask) HandleBPMNError(id string, query QueryHandleBPMNError) error + func (e *ExternalTask) HandleFailure(id string, query QueryHandleFailure) error + func (e *ExternalTask) SetPriority(id string, priority int) error + func (e *ExternalTask) SetRetries(id string, retries int) error + func (e *ExternalTask) SetRetriesAsync(id string, query QuerySetRetriesAsync) (*ResBatch, error) + func (e *ExternalTask) SetRetriesSync(id string, query QuerySetRetriesSync) error + func (e *ExternalTask) Unlock(id string) error + type ProcessDefinition struct + func (p *ProcessDefinition) ActivateOrSuspendById(by QueryProcessDefinitionBy, req ReqActivateOrSuspendById) error + func (p *ProcessDefinition) ActivateOrSuspendByKey(req ReqActivateOrSuspendByKey) error + func (p *ProcessDefinition) Delete(by QueryProcessDefinitionBy, query map[string]string) error + func (p *ProcessDefinition) Get(by QueryProcessDefinitionBy) (processDefinition *ResProcessDefinition, err error) + func (p *ProcessDefinition) GetActivityInstanceStatistics(by QueryProcessDefinitionBy, query map[string]string) (statistic []*ResActivityInstanceStatistics, err error) + func (p *ProcessDefinition) GetDeployedStartForm(by QueryProcessDefinitionBy) (htmlForm string, err error) + func (p *ProcessDefinition) GetDiagram(by QueryProcessDefinitionBy) (data []byte, err error) + func (p *ProcessDefinition) GetList(query map[string]string) (processDefinitions []*ResProcessDefinition, err error) + func (p *ProcessDefinition) GetListCount(query map[string]string) (count int, err error) + func (p *ProcessDefinition) GetProcessInstanceStatistics(query map[string]string) (statistic []*ResInstanceStatistics, err error) + func (p *ProcessDefinition) GetRenderedStartForm(by QueryProcessDefinitionBy) (htmlForm string, err error) + func (p *ProcessDefinition) GetStartFormKey(by QueryProcessDefinitionBy) (resp *ResGetStartFormKey, err error) + func (p *ProcessDefinition) GetStartFormVariables(by QueryProcessDefinitionBy, query map[string]string) (variables map[string]Variable, err error) + func (p *ProcessDefinition) GetXML(by QueryProcessDefinitionBy) (resp *ResBPMNProcessDefinition, err error) + func (p *ProcessDefinition) RestartProcessInstance(id string, req ReqRestartInstance) error + func (p *ProcessDefinition) RestartProcessInstanceAsync(id string, req ReqRestartInstance) (resp *ResBatch, err error) + func (p *ProcessDefinition) StartInstance(by QueryProcessDefinitionBy, req ReqStartInstance) (processDefinition *ResStartedProcessDefinition, err error) + func (p *ProcessDefinition) SubmitStartForm(by QueryProcessDefinitionBy, req ReqSubmitStartForm) (reps *ResSubmitStartForm, err error) + func (p *ProcessDefinition) UpdateHistoryTimeToLive(by QueryProcessDefinitionBy, historyTimeToLive int) error + type QueryComplete struct + LocalVariables *map[string]Variable + Variables *map[string]Variable + WorkerId *string + type QueryExtendLock struct + NewDuration *int + WorkerId *string + type QueryFetchAndLock struct + AsyncResponseTimeout *int + MaxTasks int + Topics *[]QueryFetchAndLockTopic + UsePriority *bool + WorkerId string + type QueryFetchAndLockTopic struct + BusinessKey *string + DeserializeValues *bool + LocalVariables *bool + LockDuration int + ProcessDefinitionId *string + ProcessDefinitionIdIn *string + ProcessDefinitionKey *string + ProcessDefinitionKeyIn *string + ProcessVariables map[string]Variable + TenantIdIn *string + TopicName string + Variables *[]string + WithoutTenantId *string + type QueryGetListPost struct + Active *bool + ActivityId *string + ActivityIdIn *string + ExecutionId *string + ExternalTaskId *string + LockExpirationAfter *Time + LockExpirationBefore *Time + Locked *bool + NoRetriesLeft *bool + NotLocked *bool + PriorityHigherThanOrEquals *int + PriorityLowerThanOrEquals *int + ProcessDefinitionId *string + ProcessInstanceId *string + Sorting *QueryListPostSorting + Suspended *bool + TenantIdIn *string + TopicName *string + WithRetriesLeft *bool + WorkerId *string + type QueryHandleBPMNError struct + ErrorCode *string + ErrorMessage *string + Variables *map[string]Variable + WorkerId *string + type QueryHandleFailure struct + ErrorDetails *string + ErrorMessage *string + Retries *int + RetryTimeout *int + WorkerId *string + type QueryListPostSorting struct + SortBy string + SortOrder string + type QueryProcessDefinitionBy struct + Id *string + Key *string + TenantId *string + func (q *QueryProcessDefinitionBy) String() string + type QuerySetRetriesAsync struct + ExternalTaskIds *string + ExternalTaskQuery *string + HistoricProcessInstanceQuery *string + ProcessInstanceIds *string + ProcessInstanceQuery *string + Retries int + type QuerySetRetriesSync struct + ExternalTaskIds *string + ExternalTaskQuery *string + HistoricProcessInstanceQuery *string + ProcessInstanceIds *string + ProcessInstanceQuery *string + Retries int + type QueryUserTaskComplete struct + Variables map[string]Variable + type ReqActivateOrSuspendById struct + ExecutionDate *Time + IncludeProcessInstances *bool + Suspended *bool + type ReqActivateOrSuspendByKey struct + ExecutionDate *Time + IncludeProcessInstances *bool + ProcessDefinitionKey string + Suspended *bool + type ReqDeploymentCreate struct + DeployChangedOnly *bool + DeploymentName string + DeploymentSource *string + EnableDuplicateFiltering *bool + Resources map[string]interface{} + TenantId *string + type ReqRedeploy struct + ResourceIds *string + ResourceNames *string + Source *string + type ReqRestartInstance struct + HistoricProcessInstanceQuery *string + InitialVariables *bool + ProcessInstanceIds *string + SkipCustomListeners *bool + SkipIoMappings *bool + StartInstructions *ReqStartInstructions + WithoutBusinessKey *bool + type ReqStartInstance struct + BusinessKey *string + CaseInstanceId *string + SkipCustomListeners *bool + SkipIoMappings *bool + StartInstructions *ReqStartInstructions + Variables *map[string]Variable + WithVariablesInReturn *bool + type ReqStartInstructions struct + ActivityId *string + TransitionId *string + Type string + Variables *map[string]VariableSet + type ReqSubmitStartForm struct + BusinessKey string + Variables map[string]Variable + type ResActivityInstanceStatistics struct + FailedJobs int + Id string + Incidents []ResActivityInstanceStatisticsIncident + Instances int + type ResActivityInstanceStatisticsIncident struct + IncidentCount int + IncidentType string + type ResBPMNProcessDefinition struct + Bpmn20Xml string + Id string + type ResBatch struct + BatchJobDefinitionId string + BatchJobsPerSeed int + Id string + InvocationsPerBatchJob int + MonitorJobDefinitionId string + SeedJobDefinitionId string + TenantId string + TotalJobs int + Type string + type ResCaseDefinition struct + Category string + DeploymentId string + HistoryTimeToLive int + Id string + Key string + Name string + Resource string + TenantId string + Version int + type ResCount struct + Count int + type ResDecisionDefinition struct + Category string + DecisionRequirementsDefinitionId string + DecisionRequirementsDefinitionKey string + DeploymentId string + HistoryTimeToLive int + Id string + Key string + Name string + Resource string + TenantId string + Version int + VersionTag string + type ResDecisionRequirementsDefinition struct + Category string + DeploymentId string + Id string + Key string + Name string + Resource string + TenantId string + Version int + type ResDeployment struct + DeploymentTime Time + Id string + Name string + Source string + TenantId string + type ResDeploymentCreate struct + DeployedCaseDefinitions map[string]ResCaseDefinition + DeployedDecisionDefinitions map[string]ResDecisionDefinition + DeployedDecisionRequirementsDefinitions map[string]ResDecisionRequirementsDefinition + DeployedProcessDefinitions map[string]ResProcessDefinition + DeploymentTime Time + Id string + Links []ResLink + Name string + Source string + TenantId string + type ResDeploymentResource struct + DeploymentId string + Id string + Name string + type ResExternalTask struct + ActivityId string + ActivityInstanceId string + BusinessKey string + ErrorDetails string + ErrorMessage string + ExecutionId string + Id string + LockExpirationTime string + Priority int + ProcessDefinitionId string + ProcessDefinitionKey string + ProcessInstanceId string + Retries int + Suspended bool + TenantId string + TopicName string + WorkerId string + type ResGetStartFormKey struct + ContextPath string + Key string + type ResInstanceStatistics struct + Definition ResProcessDefinition + FailedJobs int + Id string + Incidents []ResActivityInstanceStatisticsIncident + Instances int + type ResLink struct + Href string + Method string + Rel string + type ResLockedExternalTask struct + ActivityId string + ActivityInstanceId string + BusinessKey string + ErrorDetails string + ErrorMessage string + ExecutionId string + Id string + LockExpirationTime string + Priority int + ProcessDefinitionId string + ProcessDefinitionKey string + ProcessInstanceId string + Retries int + TenantId string + TopicName string + Variables map[string]Variable + WorkerId string + type ResProcessDefinition struct + Category string + DeploymentId string + Description string + Diagram string + HistoryTimeToLive int + Id string + Key string + Name string + Resource string + StartableInTasklist bool + Suspended bool + TenantId string + Version int + VersionTag string + type ResStartedProcessDefinition struct + BusinessKey string + CaseInstanceId string + DefinitionId string + Ended bool + Id string + Links []ResLink + Suspended bool + TenantId string + Variables map[string]Variable + type ResSubmitStartForm struct + BusinessKey string + DefinitionId string + Ended bool + Id string + Links []ResLink + Suspended bool + type Time struct + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) UnmarshalJSON(b []byte) (err error) + type UserTask struct + func (t *UserTask) Complete(query QueryUserTaskComplete) error + type UserTaskGetListQuery struct + Active bool + ActivityInstanceIdIn []string + Assigned bool + Assignee string + AssigneeExpression string + AssigneeLike string + AssigneeLikeExpression string + CandidateGroup string + CandidateGroupExpression string + CandidateGroups []string + CandidateGroupsExpression []string + CandidateUser string + CandidateUserExpression string + CaseDefinitionId string + CaseDefinitionKey string + CaseDefinitionName string + CaseDefinitionNameLike string + CaseExecutionId string + CaseInstanceBusinessKey string + CaseInstanceBusinessKeyLike string + CaseInstanceId string + CaseInstanceVariables []VariableFilterExpression + CreatedAfter time.Time + CreatedAfterExpression string + CreatedBefore time.Time + CreatedBeforeExpression string + CreatedOn time.Time + CreatedOnExpression string + DelegationState delegationState + Description string + DescriptionLike string + DueAfter time.Time + DueAfterExpression string + DueBefore time.Time + DueBeforeExpression string + DueDate time.Time + DueDateExpression time.Time + ExecutionId string + FirstResult int64 + FollowUpAfter time.Time + FollowUpAfterExpression string + FollowUpBefore time.Time + FollowUpBeforeExpression string + FollowUpBeforeOrNotExistent time.Time + FollowUpBeforeOrNotExistentExpression string + FollowUpDate time.Time + FollowUpDateExpression string + IncludeAssignedTasks bool + InvolvedUser string + InvolvedUserExpression string + MaxPriority int64 + MaxResults int64 + MinPriority int64 + Name string + NameLike string + NameNotEqual string + NameNotLike string + Owner string + OwnerExpression string + ParentTaskId string + Priority int64 + ProcessDefinitionId string + ProcessDefinitionKey string + ProcessDefinitionKeyIn []string + ProcessDefinitionName string + ProcessDefinitionNameLike string + ProcessInstanceBusinessKey string + ProcessInstanceBusinessKeyIn []string + ProcessInstanceBusinessKeyLike string + ProcessInstanceId string + ProcessVariables []VariableFilterExpression + SortBy string + SortOrder string + Suspended bool + TaskDefinitionKey string + TaskDefinitionKeyIn []string + TaskDefinitionKeyLike string + TaskVariables []VariableFilterExpression + TenantIdIn []string + Unassigned bool + WithCandidateGroups bool + WithCandidateUsers bool + WithoutCandidateGroups bool + WithoutCandidateUsers bool + WithoutTenantId string + func (q *UserTaskGetListQuery) MarshalJSON() ([]byte, error) + type UserTaskResponse struct + Assignee string + CaseDefinitionId string + CaseExecutionId string + CaseInstanceId string + Created string + DelegationState string + Description string + Due string + ExecutionId string + FollowUp string + FormKey *string + Id string + Name string + Owner string + ParentTaskId string + Priority int64 + ProcessDefinitionId string + ProcessInstanceId string + Suspended bool + TaskDefinitionKey string + TenantId *string + type ValueInfo struct + ObjectTypeName *string + SerializationDataFormat *string + type Variable struct + Type string + Value interface{} + ValueInfo ValueInfo + type VariableFilterExpression struct + Name string + Operator variableFilterExpressionOperator + Value string + type VariableSet struct + Local bool + Type string + Value string + ValueInfo ValueInfo