Skip to content

ULC/CCC/BC data mapping - business states analysis #14691

Closed

Description

@argush3

In COLIN, there are 23 different states including D1, D2, withdrawn, limited rest, his amalg, his cont in etc. for the corps to be brought over to LEAR.

Analysis needs to be done to determine whether additional states need to be added. some states in legacy system may possibly be represented via dynamic calculations in new system

RFC for original vision of business states in new system: https://github.com/bcgov/entity/blob/master/rfcs/rfc-business-states.md

Current Corp State data in CPRD
CBAD5EC3

Allowable Restoration and Put Back On Mapping

image

Activity

  1. self-assigned this
    on Dec 12, 2022
  2. Mihai-QuickSilverDev commented on Jan 5, 2023

    @Mihai-QuickSilverDev
    Collaborator

    @thorwolpert Hi Thor, I think that we might kindly need your help with this ticket. Restoration filings work, on-going right now, requires the Back End to validate which corporations can be restored and which not, based on how they became historical. For example, historical because of amalgamation cannot be restored.

  3. argush3 commented on Jan 10, 2023

    @argush3
    ContributorAuthor

    @thorwolpert can you take a look at this when you have a minute and let me know if what I've written here makes sense?

    Some analysis was done to determine if there are any obvious issues with bringing over corps data from COLIN as it relates to business states. The business state RFC for LEAR was used as a reference point as to how the COLIN states and operational states will be represented in LEAR.

    Analysis details:
    In COLIN, there is an operational state(CORP_OP_STATE table) and a state(CORP_STATE table). The operational state can be represented by the three (ACTIVE, LIQUIDATION, HISTORICAL) business states we have in LEAR right now. As for the other COLIN state (corp state), these can be represented by a combination of dynamic calculations (represented as warning structures or business properties like good standing) for a business, the filing type or using the filing type that transitioned a business into its current state.

    There are still some details that need to be fleshed out for filings like the ones below. These details will be worked out as we implement the filings in LEAR.

    • Involuntary dissolution - this is currently a manual process that transitions a business to D1 to D2 based on some conditions. Uncertain as to how this changes in LEAR and how we will represent the involuntary dissolution process from a data and process perspective. Will the manual process become an automated process in LEAR?
    • Liquidation - how does this process look? do we need additional business states for the liquidation steps or will we be able to just use the business state of “LIQUIDATION” and determine which step in the liquidation process a business is in via some dynamic calculations?

    Answers to address specific concerns that @Mihai-QuickSilverDev had around how we will represent the COLIN business in LEAR if we don’t bring over the state entries in the COLIN corp_state table specifically.

    How do we tell if a corp is restorable?
    The legal api will provide a list of filings that a business can currently file. The BE will be able to determine this for scenarios where a corp is non-restorable by checking things like the state and the filing that put the business in its current business state. For example if an amalgamation filing put a corp into a historical business state, the api would not return the restoration filing as an actionable filing in the business response.

    D219BBF5-B867-43E6-B629-955262193CD1

    How would you determine if a business is currently in limited restoration?
    The “stateFilling” property in the business object can be used to determine this. The “stateFiling” property references the filing that resulted in the current business state transition. If a business is ACTIVE and the stateFiling references a limited restoration then you have determined the business in limited restoration. We may want to make this easier for the API consumer to determine things like the filing type or the from/to business state of a state filing.

    02745C73-89C0-4A23-BD0F-B1BCC727B739

  4. argush3 commented on Jan 10, 2023

    @argush3
    ContributorAuthor

    In discussing with Thor, I will be creating a detailed RFC to flesh things out in more detail. cc: @Mihai-QuickSilverDev @severinbeauvais @davemck513

    thor wolpert @thor
    We should probably add to, or create a detailed RFC to capture the design/outcome.
    The COLIN state table is kind of a mixture (the lack of patterns is the pattern)
    There are 2 Business States - Active / Historic.
    There are some internal operational states that actually are linked, but no machine actionable link. You have to know it or code it in elsewhere.
    Some operational states block the transitions between active <-> historical
    A somewhat simple state machine, either as a linked table in the DB, or in linked dictionaries in the code would make that a lot easier to manage

  5. argush3 commented on Feb 3, 2023

    @argush3
    ContributorAuthor

    RFC has been approved. We have decided that this will be used as a starting point for how we will represent COLIN business states in LEAR. We will refine the finer details and design as we start implementation.

  6. added
    Entities Team
    on Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ENTITY - DO NOT USEEntities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions