Clarity

Expand all | Collapse all

Automating the Project creation in Clarity

  • 1.  Automating the Project creation in Clarity

    Posted Mar 24, 2016 11:39 AM

    Currently we are using clarity v13.2. 

    To create a projects into clarity we have a support team, and they have been provided with excel template filled by users for whom the projects wants to be created in clarity.

    As of now we are doing it manually by reading the excel data and filling it into clarity.

    Is there anyway to automate it ? so that the manual work will reduce.  

     

    Does anybody has experienced this before?  can you please help me to fix this out.



  • 2.  Re: Automating the Project creation in Clarity

    Posted Mar 24, 2016 04:33 PM

    Establish the minimum data required for project creation.

    Create an Excel sheet with formulas to turn that into xml. One record  to one file. Put the source data in the same sequence you get your data for new projects.

    Copy paste your new data.

    Manually XOG

     

    Create a java script to turn you Excel into xml and do the XOGing.

     

    Use an XML editor that can read the Excel to create the xml files and manually XOG in.

     

    Create a GEL script to read the Excel and write with XOG into Clarity.

     

    Use a third party Excel integration tool.

     

    Use a more versatile third party integration tool.



  • 3.  Re: Automating the Project creation in Clarity

    Posted Mar 28, 2016 11:06 AM

    Hi,

    Thanks for the initial guidance, now we got an idea to startup this analysis.

    Here is the minimal XML data to create a project via XOG.

     

    Source XML:

    <?xml version="1.0" encoding="UTF-8"?>

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">

      <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="13.2.0.472">

    <args name="overrideAutoNumbering" value="false"/>

    </Header>

      <Projects>

        <Project name="XXFinProject_test_auto numbering"  description="XX Financial Project" start="2016-01-01T00:00:00" finish="2019-06-02T00:00:00" active="1" />

      </Projects>

    </NikuDataBus>

     

    and we got thie error:

    <XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">

    <Status elapsedTime="0.001 seconds" state="FAILURE"/> 

    <Statistics failureRecords="0" insertedRecords="0" totalNumberOfRecords="0" updatedRecords="0"/>

    <ErrorInformation>  

           <Severity>FATAL</Severity>  

           <Description>Exception while processing client request</Description>  

           <Exception type="com.niku.xog.XOGException">main node not found customObjectInstances</Exception> 

    </ErrorInformation>

    </XOGOutput>

     

    Can someone please help this out to fix it (Auto numbering issue) ?

    Please share the XML to create a project with minimal data fields via this XOGing process.



  • 4.  Re: Automating the Project creation in Clarity

    Posted Mar 28, 2016 11:46 AM

    I should try to leave out

    <?xml version="1.0" encoding="UTF-8"?>

     

    and if that does not help try XOG Bridge from ITRoi if that is allowed in your orgnization.



  • 5.  Re: Automating the Project creation in Clarity

    Posted Mar 28, 2016 02:27 PM

    ITROI has some cool tools and the XOG bridge is great.

     

    The above is not a paid endorsement (I cannot be bought, but I can be rented), but a statement from one who has used some of their tools. 

     

    Frederico Pena is always happy to demo his tools.

     

    Mike



  • 6.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 04:01 AM

    In the "header" part of the xml it should be objectType="project" not objectType="customObjectInstance"

     

    You can't (well you shouldn't) try to "guess" at XOG syntax ; use the CA-provided "prj_projects_read.xml" to read out a project from your system ; that will tell you what xml you need to form to write one back into your system. (The xog read will include lots of attributes that you might not need though, but the syntax will be exactly what you need)



  • 7.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 04:18 AM

    First guy to actually look at the file ;-)



  • 8.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 06:05 AM

    Well I looked at the error message (which is always a good idea!) and it said "main node not found customObjectInstances" - and so I thought that that was a pretty strong clue as to at least one significant problem (since we weren't talking about custom object instances at all)



  • 9.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 06:26 AM

    Would you not agree that one of the perquisites for success in XOGing is tha ability to read and understand the error messages?



  • 10.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 08:20 AM

    I think one of the prerequisites for anything is reading the error messages!



  • 11.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 08:22 AM

    Some of the XOG error messages can be a little cryptic at times



  • 12.  Re: Automating the Project creation in Clarity

    Posted Apr 04, 2016 11:06 AM

    And also reading examples, and the manuals.



  • 13.  Re: Automating the Project creation in Clarity

    Posted Mar 29, 2016 08:11 AM

    If you don't want to give project create rights, you could instead create a custom object and then create a project from that. ( i.e. create the xml to XOG or use the OTTB object mapping)

    I recently did this and works really well.

    What's great is that it will cope with any post steps you need. (approval chains, templates, rights, emails, cost plans etc)

    Also because it's in the system to start with, upfront data validation is easier.



  • 14.  Re: Automating the Project creation in Clarity

    Posted Mar 31, 2016 06:55 AM

    I like this approach - it is quick, clean, needs no GEL knowledge and it is auditable. You could also look at using Ideas to capture the detail and convert to a project (sounds vaguely familiar).



  • 15.  Re: Automating the Project creation in Clarity

    Posted Mar 31, 2016 08:29 AM

    I'm going to be honest, you probably will need basic Gel knowledge for the post steps.

    Creating the project is the easy bit , to get the benefits you need to solve the end-end process.

     

    Here's the outline of my process to create based on a custom object. I can't share the process.

    The process is triggered from the action menu for the selected instances

    Keep in mind upfront validation in the object instance and build performance and error handling into the process

     

     

    I hope this is of use!

     

    Start

    Check if should convert

    • has it been reviewed,
    • check if already converted

    Lock from further changes - system action

    Create the project via XOG (based on template chosen)

    • write in the metadata
    • update the edit rights for requestor (requestor may not be PM)
    • write in the object id of the custom object instance to the project (for later use)
    • check if was converted(if not error handling)

    Update status of custom object via XOG

    • Write back project id
    • set to converted
    • Remove edit right instance of requestor (give view)
    • unlock
    • error handling

    additional users needing access (skip if none) via XOG

    • update edit instance rights to project

    Send emails - gel (explains all post steps they need to take, governance etc)

    • email pm (cc requestor) - check what type of project, send different email based on rules
    • support post steps - based on rules, exceptions which need manual intervention
    • additional users - similar to pm email, but let's them know about change in rights.

    Error handling - Not processed

    • unlock
    • change status
    • reset the review flag

    Finish



  • 16.  Re: Automating the Project creation in Clarity

    Posted Apr 01, 2016 01:47 AM

    ... but the end point was

    "I recently did this and works really well."