Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access to contet.scenario ? #6

Open
ValeriyTitov opened this issue Mar 28, 2018 · 2 comments
Open

How to access to contet.scenario ? #6

ValeriyTitov opened this issue Mar 28, 2018 · 2 comments
Labels
Q&A Questions and answers.

Comments

@ValeriyTitov
Copy link

I want create group of facts, and insert them in DataTable.
As i understand, i should access Contect.Scenario section and find typed dimensions values.

What is right way to create group of facts ?

@JeffFerguson
Copy link
Owner

JeffFerguson commented Mar 28, 2018

The current release of Gepsio keeps the Scenario node of the Context class internal, so it is not exposed to callers. If that is a need, let me know and I will do what I can to expose that data.

@JeffFerguson JeffFerguson added the Q&A Questions and answers. label Mar 28, 2018
@ValeriyTitov
Copy link
Author

ValeriyTitov commented May 16, 2018

From an example i attached in "How to attach label for a fact ?" thread, there are only 4 facts about 2 Acountants:

John Smith 1980-03-01
Marry Williams 1985-03-28

However, i couldnt find a way how to correlate this facts in meaningfull structures(e.g. find birthdate of John Smith).
Gepsio just makes one flat list of facts, which not correlate to each other:

Name: John Smith
Name: Marry Williams
BirthDate: 1985-03-28
BirthDate: 1980-03-01

As i understand, to solve this, i should access to Fact.Context.Scenario and read fact dimensions values - "Accountant1"
So if BirthDate and Name fact refences same dimension value(e.g. "Accountant1"), its BirthDate and Name of same person.

Or is there another way ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q&A Questions and answers.
Projects
None yet
Development

No branches or pull requests

2 participants