我可以识别/知道我是OrchestrationStep吗? [英] Can I recognize/know what the OrchestrationStep I'm?

查看:54
本文介绍了我可以识别/知道我是OrchestrationStep吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如...

我已经在InputClaims中尝试过

I've tried this in InputClaims

<InputClaim ClaimTypeReferenceId="Step" AlwaysUseDefaultValue="true" DefaultValue="SelfAsserted-Social-Step01" />

还有OutputClaims中的内容

And that in OutputClaims

<OutputClaim ClaimTypeReferenceId="Step" />

因此,以这种方式在页面的Javascript(客户端)中捕获所有内容:

So capture all in Javascript (Client-side) in page in this way:

var stepPage = $("#Step").text();

switch (stepPage) {
    case "OS-SignIn":
        do_this();
}

为我目的而工作,但这看起来是一种解决方法...

Worked for me purpose, but it looks a workaround...

最后,我的问题是:如何以一种复杂的方式实现此行为,例如B2C在javascript中创建的var或类似的东西?更原生...

Finally, my question is: How I achieve this behaviour in a sophisticated way, like a var in javascript created by B2C or something like that? More native...

推荐答案

对于此用例,您可以为每个技术资料使用不同的内容定义ID.然后使用该特定技术资料的相应HTML dataURI定义一个具有匹配ID的匹配内容定义.

For this use case, you can use a different content definition id for each technical profile. And then define a matching content definition with matching id, with the respective HTML dataURI for that specific technical profile.

这样,您无需在前端确定要呈现的业务流程步骤,因为每个业务流程步骤都有特定的HTML.

This way you don't need to determine on the front end what orchestrations step is being rendered, as you'll have a HTML specific for each orchestration step.

请参阅下文,我如何创建api.page1作为此技术资料的内容定义.对每个技术资料重复该模式.然后每个页面都将引用一个唯一的HTML文件.

See below how i create api.page1 as a content definition for this technical profile. Repeat that pattern for each technical profile. Then each page will reference a unique HTML file.

    <ContentDefinition Id="api.page1">
      <LoadUri>https://your-storage-account.blob.core.windows.net/your-container/customize-ui-page1.html</LoadUri>
      <RecoveryUri>~/common/default_page_error.html</RecoveryUri>
      <DataUri>urn:com:microsoft:aad:b2c:elements:unifiedssp:1.0.0</DataUri>
      <Metadata>
        <Item Key="DisplayName">Signin and Signup</Item>
      </Metadata>
    </ContentDefinition>

<TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
          <DisplayName>Local Account Signin</DisplayName>
          <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
          <Metadata>
            <Item Key="SignUpTarget">SignUpWithLogonEmailExchange</Item>
            <Item Key="setting.operatingMode">Email</Item>
            <Item Key="ContentDefinitionReferenceId">api.page1</Item>

这篇关于我可以识别/知道我是OrchestrationStep吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆