Skip to content

Conversation

@JanLosenicky
Copy link

@JanLosenicky JanLosenicky commented Aug 9, 2024

Prerequisites

Branch is based on this PR: #182

Purpose

Enabling creation of records in specific Business Process Flow stage

Specify '@bpf' as an object with '@logicalName' and '@activestageid' to be able to move record to desired bpf stage.

Example:

#Entity
@talxis_opportunityheader

Feature: Open Opportunity

Background:
	Given I am logged in to the 'TALXIS Sales' app as 'a salesman'
	And 'an existing account' exists
	And 'an opportunity in won stage' exists
	And I have opened 'the opportunity in won stage'
Scenario: Open Opportunity In Won Stage
	Given I have opened 'the opportunity in won stage'

an opportunity.json

{
  "@logicalName": "talxis_opportunityheader",
  "@alias": "the opportunity",
  "talxis_name": "Test Opportunity",
  "[email protected]": "the existing account"
}

an opportunity in won stage.json

{
  "@extends":  "../an opportunity",
  "@logicalName": "talxis_opportunityheader",
  "@alias": "the opportunity in won stage",
  "@bpf": {
    "@logicalName": "talxis_opportunitybusinessprocessflow",
    "@activestageid": "b573544e-8c04-4b6d-ac3d-84d810d92ac1"
  }
}

Approach

  • update of deepInsertService to be able to work with '@bpf'
  • modifying and creating related tests

TODOs

  • Automated test coverage for new code
  • Documentation updated (if required)
  • Build and tests successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant