OpenChat Post (Questetra’s Enterprise Social Networking)

Concatenating data items, posts to Open Chat targeting the designated organization.

    A. Select MESSAGING TARGET DATA (Group)Data selectOrganizationRequired
    B. Set Beginning of the Message (e.g. "Today's #translation")Multi-line input
    C. Select TEXT DATA for postData selectStringRequired
    D. Set Text for Separator Line (e.g. "---- ")Single-line input
    E. Select HASH VALUESData selectString(single line)Required
    F. Select NUM OF CHARACTERSData selectNumericRequired
    -variable namevariable label
    Aconf_MessagingTargetSelect MESSAGING TARGET DATA (Group)
    Bconf_BeginningOfPostSet Beginning of the Message (e.g. "Today's #translation")
    Cconf_TextForPostSelect TEXT DATA for post
    Dconf_SeparatorSet Text for Separator Line (e.g. "---- ")
    Econf_HashValuesSelect HASH VALUES
    Fconf_NumOfCharactersSelect NUM OF CHARACTERS
    //// == 自動工程コンフィグの参照 / Config Retrieving ==
    var beginningOfPost = configs.get("conf_BeginningOfPost") + "\n"; // TEXTFIELD returns String
    var separator = configs.get("conf_Separator") + "\n"; // TEXTFIELD returns String
    
    var dataDefNumA = configs.get("conf_MessagingTarget"); // SELECT returns Number
    var dataDefNumC = configs.get("conf_TextForPost"); // SELECT returns Number
    var dataDefNumE = configs.get("conf_HashValues"); // SELECT returns Number
    var dataDefNumF = configs.get("conf_NumOfCharacters"); // SELECT returns Number
    
    //// == ワークフローデータの参照 / Data Retrieving ==
    var myMessageTarget = data.get( dataDefNumA ); // qgroupDao
    var textForPost = data.get( dataDefNumC ) + "\n"; // JavaScript String
    var hashValues = data.get( dataDefNumE ) + ""; 
    var numOfCharacters = data.get( dataDefNumF ) + ""; 
    
    //// == 演算 / Calculating ==
    var openChat = feedService.begin();
    
    var myPost = "";
    myPost += beginningOfPost;
    myPost += textForPost;
    myPost += separator;
    myPost += hashValues + " (" + numOfCharacters + " letters)";
    
    openChat.setShareQgroup( myMessageTarget );
    openChat.setMessage( myPost );
    openChat.post();
    

    • A’: Organization stored in the Data Item selected at config A
    • C’: Strings stored in the Data Item selected at config C
    • E’: Strings stored in the Data Item selected at config E
    • F’: Numeric value stored in the Data Item selected at config F
    • With the Organization specified in config A as the scope, a message concatenating B, C’, D, E’, and F’ will be automatically posted