Workflow Using Rules

Post Reply
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Workflow Using Rules

Post by jim wood »

Guys,

Currently I am building a model that uses control cubes, rules and security to operate a work flow mechanism. While this works well there is an issue with the amount of time it takes for security to refresh. I was wondering if anybody else had encountered this problem and how you got around it.

Bare in mind that this is a real time model so I'm pretty restricted when it comes to TI usage.

Cheers,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Workflow Using Rules

Post by jim wood »

I've been having a look and it's looks to me like data reservation via TI is a viable option. Do you guys agree? Any other suggestions?

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Workflow Using Rules

Post by tomok »

The time it takes to do a SecurityRefresh is directly related to the number of groups you have and the size of the dimensions being secured. There is nothing that I know of that you can do to make that function run faster. It is what it is based on your security setup.

I have done quite a few models using workflow (and I mean my own home-grown version, not TM1 Workflow). In some of my earlier models I attempted rule-based workflow and really was never able to get it to perform like I wanted because of the exact same thing, securtity issues and feeder issues. Ever since then I have used TI based workflow. I've never had an issue with performance as long as the users are not copying huge amounts of data up the workflow tree at the same time.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Workflow Using Rules

Post by lotsaram »

jim wood wrote:I've been having a look and it's looks to me like data reservation via TI is a viable option. Do you guys agree? Any other suggestions?

Jim.
I haven't looked into data reservation with 9.5.2 yet but in general the time a TI (or several TIs) take to run to rebuild element security for a specific group is generally much less than a page refresh time in TM1 web. In other words users won't notice, in my experience it leads to better performance and a more "real time" model than using security rules and having to do lots of security refreshes.
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Workflow Using Rules

Post by jim wood »

tomok wrote:The time it takes to do a SecurityRefresh is directly related to the number of groups you have and the size of the dimensions being secured. There is nothing that I know of that you can do to make that function run faster. It is what it is based on your security setup.

I have done quite a few models using workflow (and I mean my own home-grown version, not TM1 Workflow). In some of my earlier models I attempted rule-based workflow and really was never able to get it to perform like I wanted because of the exact same thing, securtity issues and feeder issues. Ever since then I have used TI based workflow. I've never had an issue with performance as long as the users are not copying huge amounts of data up the workflow tree at the same time.
We currently have around 7k security groups for a dimension of around 2.6k elements. The reason I went down the rules route was that we have a custom web interface for the workflow accessing the API via .net,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
sivan307
Posts: 28
Joined: Wed Sep 01, 2010 2:15 pm
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007

Re: Workflow Using Rules

Post by sivan307 »

I am currently using Control Cubes, TI & Security to create & manage custom workflow in TM1 9.5.1. I haven't used Data Reservations & would love to know more details about it. Started reading the TM1 9.5.2 Developers guide "Using Data Reservations". I think TI is the way to go for implementing workflow. Tried Rule based, but not completely satisfied with the results.
User avatar
paulsimon
MVP
Posts: 808
Joined: Sat Sep 03, 2011 11:10 pm
OLAP Product: TM1
Version: PA 2.0.5
Excel Version: 2016
Contact:

Re: Workflow Using Rules

Post by paulsimon »

Hi

A way to get a security refresh from a single dimension is to use a process that reads from the }ElementSecurity Cube for the dimension and on the Data Tab use

IF(Value @= '' ) ;
Value = 'NONE' ;
ENDIF ;

ElementSecurityPut(Value,vDim,vElem,vGrp) ;

This is usually a lot faster than a full SecurityRefresh

Regards

Paul Simon
Post Reply